Workaround 32-bit dex2oat/oatdumpd crashes by enabling compiler analysis

This analysis got disabled by default in upstream and seems to cause a
miscompile in oatdump.

Test: HOST_PREFER_32_BIT=true m -j32 test-art-host-gtest-art_oatdump_tests32
Test: art/art-target-gtest on go/abtd
Change-Id: Ic1ae7894531565f7e84250b2edea3c84a58ce5c9
diff --git a/build/Android.bp b/build/Android.bp
index d2545a4..0a40007 100644
--- a/build/Android.bp
+++ b/build/Android.bp
@@ -151,6 +151,13 @@
     ],
 
     arch: {
+        arm: {
+            cflags: [
+                // http://b/218805949  WAR for dex2oat32 segfault with clang-r445002
+                "-Xclang",
+                "-enable-noundef-analysis",
+            ],
+        },
         x86: {
             avx2: {
                 cflags: [
@@ -158,6 +165,11 @@
                     "-mfma",
                 ],
             },
+            cflags: [
+                // http://b/218805949  WAR for dex2oat32 segfault with clang-r445002
+                "-Xclang",
+                "-enable-noundef-analysis",
+            ],
         },
         x86_64: {
             avx2: {