summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInstance.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Frontend/CompilerInstance.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInstance.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Frontend/CompilerInstance.cpp b/clang/lib/Frontend/CompilerInstance.cpp
index 720f7bb5820..9a679eed24d 100644
--- a/clang/lib/Frontend/CompilerInstance.cpp
+++ b/clang/lib/Frontend/CompilerInstance.cpp
@@ -671,9 +671,8 @@ static void compileModule(CompilerInstance &ImportingInstance,
Invocation->getDiagnosticOpts().VerifyDiagnostics = 0;
- // FIXME: Strip away all of the compilation options that won't be transferred
- // down to the module. This presumably includes -D flags, optimization
- // settings, etc.
+ assert(ImportingInstance.getInvocation().getModuleHash() ==
+ Invocation->getModuleHash() && "Module hash mismatch!");
// Construct a compiler instance that will be used to actually create the
// module.
OpenPOWER on IntegriCloud