summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2015-04-29 23:40:48 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2015-04-29 23:40:48 +0000
commitf5ec2acca9456f9c6c5f4060aa53ce72a9bb07f5 (patch)
tree6b92b2f51acc477d71b04b654575a5ddfcd959ed /clang/lib/Lex/Preprocessor.cpp
parent10b3acf215aa0e507bf5d1f7b557639a62a8ef94 (diff)
downloadbcm5719-llvm-f5ec2acca9456f9c6c5f4060aa53ce72a9bb07f5.tar.gz
bcm5719-llvm-f5ec2acca9456f9c6c5f4060aa53ce72a9bb07f5.zip
Add an assert to get information on buildbot failure.
llvm-svn: 236181
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r--clang/lib/Lex/Preprocessor.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp
index cd00be8adaf..231720b8db1 100644
--- a/clang/lib/Lex/Preprocessor.cpp
+++ b/clang/lib/Lex/Preprocessor.cpp
@@ -627,6 +627,7 @@ bool Preprocessor::HandleIdentifier(Token &Identifier) {
// If this is a macro to be expanded, do it.
if (MacroDefinition MD = getMacroDefinition(&II)) {
auto *MI = MD.getMacroInfo();
+ assert(MI && "macro definition with no macro info?");
if (!DisableMacroExpansion) {
if (!Identifier.isExpandDisabled() && MI->isEnabled()) {
// C99 6.10.3p10: If the preprocessing token immediately after the
OpenPOWER on IntegriCloud