mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-26 21:32:10 +00:00
Add sanity check in Clang TableGen backend to check if 'Component' is a string.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@67565 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1b25cb2416
commit
13b9bf9022
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user