Add sanity check in Clang TableGen backend to check if 'Component' is a string.

llvm-svn: 67565
This commit is contained in:
Ted Kremenek 2009-03-23 21:54:33 +00:00
parent 95953ce31c
commit c8e54db801
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@ void ClangDiagsDefsEmitter::run(std::ostream &OS) {
continue;
const StringInit* SV = dynamic_cast<const StringInit*>(V->getValue());
if (SV->getValue() != Component)
if (!SV || SV->getValue() != Component)
continue;
}