Use LLVM JIT for MemorySanitizer GN builds

Only the LLVM JIT supports MemorySanitizer instrumentation, so don't use
Subzero for MSan builds.

Bug: b/155148722
Change-Id: I286107b08f36bc1083568353361cfca5947dd4d7
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/50308
Reviewed-by: Alexis Hétu <sugoi@google.com>
Tested-by: Nicolas Capens <nicolascapens@google.com>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
diff --git a/src/Reactor/BUILD.gn b/src/Reactor/BUILD.gn
index a2724bb..86bfabf 100644
--- a/src/Reactor/BUILD.gn
+++ b/src/Reactor/BUILD.gn
@@ -16,9 +16,9 @@
 
 declare_args() {
   # Subzero produces smaller binaries, but doesn't support ARM64, MIPS64, and
-  # PPC64.
+  # PPC64. It also doesn't support MemorySanitizer instrumentation.
   use_swiftshader_with_subzero =
-      current_cpu != "arm64" && current_cpu != "mips64el" && current_cpu != "ppc64"
+      current_cpu != "arm64" && current_cpu != "mips64el" && current_cpu != "ppc64" && !is_msan
   supports_llvm = is_linux || is_chromeos || is_fuchsia || is_win || is_android || is_mac
 }