[llvm-commits] [llvm] r67565 - /llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
Ted Kremenek
kremenek at apple.com
Mon Mar 23 14:54:33 PDT 2009
Author: kremenek
Date: Mon Mar 23 16:54:33 2009
New Revision: 67565
URL: http://llvm.org/viewvc/llvm-project?rev=67565&view=rev
Log:
Add sanity check in Clang TableGen backend to check if 'Component' is a string.
Modified:
llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
Modified: llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp?rev=67565&r1=67564&r2=67565&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/ClangDiagnosticsEmitter.cpp Mon Mar 23 16:54:33 2009
@@ -113,7 +113,7 @@
continue;
const StringInit* SV = dynamic_cast<const StringInit*>(V->getValue());
- if (SV->getValue() != Component)
+ if (!SV || SV->getValue() != Component)
continue;
}
More information about the llvm-commits
mailing list