]> granicus.if.org Git - clang/commitdiff
Turn off module verification in Release-Asserts builds.
authorDaniel Dunbar <daniel@zuster.org>
Fri, 31 Oct 2008 09:34:21 +0000 (09:34 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Fri, 31 Oct 2008 09:34:21 +0000 (09:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@58500 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/clang.cpp

index cf19c66d77534a7ee02609b16d1f16502477a67f..74dc7b4b4993e48c250fc5dacb7c03ee3e3bb92c 100644 (file)
@@ -1153,6 +1153,10 @@ static void InitializeCompileOptions(CompileOptions &Opts) {
   Opts.InlineFunctions = (Opts.OptimizationLevel > 1);
   Opts.UnrollLoops = (Opts.OptimizationLevel > 1 && !OptSize);
   Opts.SimplifyLibCalls = 1;
+
+#ifdef NDEBUG
+  Opts.VerifyModule = 0;
+#endif
 }
 
 //===----------------------------------------------------------------------===//