commit | 13b9bf9022e4a9f217489273f6128457efd84d34 | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Mon Mar 23 21:54:33 2009 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Mon Mar 23 21:54:33 2009 +0000 |
tree | 961033721a598f1ee3319db1bed21bbd30519205 | |
parent | 1b25cb2416c46a6cebf2a6c52235e9fe46a10d11 [diff] [blame] |
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
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 @@ continue; const StringInit* SV = dynamic_cast<const StringInit*>(V->getValue()); - if (SV->getValue() != Component) + if (!SV || SV->getValue() != Component) continue; }