diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-03-23 21:54:33 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-03-23 21:54:33 +0000 |
commit | 13b9bf9022e4a9f217489273f6128457efd84d34 (patch) | |
tree | 961033721a598f1ee3319db1bed21bbd30519205 /utils | |
parent | 1b25cb2416c46a6cebf2a6c52235e9fe46a10d11 (diff) | |
download | external_llvm-13b9bf9022e4a9f217489273f6128457efd84d34.zip external_llvm-13b9bf9022e4a9f217489273f6128457efd84d34.tar.gz external_llvm-13b9bf9022e4a9f217489273f6128457efd84d34.tar.bz2 |
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
Diffstat (limited to 'utils')
-rw-r--r-- | utils/TableGen/ClangDiagnosticsEmitter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/ClangDiagnosticsEmitter.cpp b/utils/TableGen/ClangDiagnosticsEmitter.cpp index 0f93a4f..38bbf8e 100644 --- a/utils/TableGen/ClangDiagnosticsEmitter.cpp +++ b/utils/TableGen/ClangDiagnosticsEmitter.cpp @@ -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; } |