Fully enable MemorySanitizer instrumentation for GN builds

MemorySanitizer instrumentation was previously only enabled for select
routines. Specifically pixel routines were still using the workaround
of unpoisoning all memory writes. This change universally enables proper
instrumentation for GN builds.

Bug: b/188205704
Change-Id: I207acbba4675000370befd86e56e8cf5b7c481fe
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54128
Tested-by: Nicolas Capens <nicolascapens@google.com>
Commit-Queue: Nicolas Capens <nicolascapens@google.com>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/Reactor/BUILD.gn b/src/Reactor/BUILD.gn
index 676f99f..86f4bc6 100644
--- a/src/Reactor/BUILD.gn
+++ b/src/Reactor/BUILD.gn
@@ -27,6 +27,11 @@
     ]
   } else {
     cflags = [ "-Wno-unused-local-typedef" ]
+    defines = [
+      # Enable instrumentation of Reactor routines for MemorySanitizer builds (LLVM backend).
+      # TODO(b/155148722): Remove when unconditionally instrumenting for all build systems.
+      "REACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION=1",
+    ]
   }
 }