r236454 - [modules] Don't bother registering loaded macros if there are none.
Richard Smith
richard-llvm at metafoo.co.uk
Mon May 4 12:58:00 PDT 2015
Author: rsmith
Date: Mon May 4 14:58:00 2015
New Revision: 236454
URL: http://llvm.org/viewvc/llvm-project?rev=236454&view=rev
Log:
[modules] Don't bother registering loaded macros if there are none.
We don't yet have a reduced testcase for this.
Modified:
cfe/trunk/lib/Serialization/ASTReader.cpp
Modified: cfe/trunk/lib/Serialization/ASTReader.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Serialization/ASTReader.cpp?rev=236454&r1=236453&r2=236454&view=diff
==============================================================================
--- cfe/trunk/lib/Serialization/ASTReader.cpp (original)
+++ cfe/trunk/lib/Serialization/ASTReader.cpp Mon May 4 14:58:00 2015
@@ -1829,7 +1829,8 @@ void ASTReader::resolvePendingMacro(Iden
Earliest = MD;
}
- PP.setLoadedMacroDirective(II, Latest);
+ if (Latest)
+ PP.setLoadedMacroDirective(II, Latest);
}
ASTReader::InputFileInfo
More information about the cfe-commits
mailing list