mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-23 11:04:49 +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…
x
Reference in New Issue
Block a user