Turn off module verification in Release-Asserts builds.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58500 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index cf19c66..74dc7b4 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -1153,6 +1153,10 @@
Opts.InlineFunctions = (Opts.OptimizationLevel > 1);
Opts.UnrollLoops = (Opts.OptimizationLevel > 1 && !OptSize);
Opts.SimplifyLibCalls = 1;
+
+#ifdef NDEBUG
+ Opts.VerifyModule = 0;
+#endif
}
//===----------------------------------------------------------------------===//