[cfe-commits] r139663 - /cfe/trunk/lib/Frontend/CompilerInstance.cpp
Douglas Gregor
dgregor at apple.com
Tue Sep 13 16:20:27 PDT 2011
Author: dgregor
Date: Tue Sep 13 18:20:27 2011
New Revision: 139663
URL: http://llvm.org/viewvc/llvm-project?rev=139663&view=rev
Log:
Assert that the module hash produced after stripping away non-modular options is the same as the module hash before stripping those options.
Modified:
cfe/trunk/lib/Frontend/CompilerInstance.cpp
Modified: cfe/trunk/lib/Frontend/CompilerInstance.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInstance.cpp?rev=139663&r1=139662&r2=139663&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInstance.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInstance.cpp Tue Sep 13 18:20:27 2011
@@ -671,9 +671,8 @@
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.
More information about the cfe-commits
mailing list