aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Driver/clang.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index cf19c66d77..74dc7b4b49 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -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
}
//===----------------------------------------------------------------------===//