summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Frontend
diff options
context:
space:
mode:
authorKristof Umann <dkszelethus@gmail.com>2018-11-02 19:48:56 +0000
committerKristof Umann <dkszelethus@gmail.com>2018-11-02 19:48:56 +0000
commit37829b56a1ef3e98868aebb39a32aca87ab8805e (patch)
tree8befd07d884f6b0c30c28e452b43adad23d85b61 /clang/lib/StaticAnalyzer/Frontend
parent88e8763baef3d6af562ce1549245878adc6bc84b (diff)
downloadbcm5719-llvm-37829b56a1ef3e98868aebb39a32aca87ab8805e.tar.gz
bcm5719-llvm-37829b56a1ef3e98868aebb39a32aca87ab8805e.zip
Attempt to fix 'logical operation on address of string constant'
Caused a lot of warnings for Windows: http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/21178/steps/build/logs/warnings%20%2867%29 llvm-svn: 346033
Diffstat (limited to 'clang/lib/StaticAnalyzer/Frontend')
-rw-r--r--clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
index 03d2ef30c78..8a26735b007 100644
--- a/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
+++ b/clang/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
@@ -178,7 +178,8 @@ void ento::printAnalyzerConfigList(raw_ostream &out) {
{ \
CMDFLAG, \
llvm::Twine(llvm::Twine() + "(" + \
- (#TYPE == "StringRef" ? "string" : #TYPE ) + ") " DESC \
+ (StringRef(#TYPE) == "StringRef" ? "string" : #TYPE ) + \
+ ") " DESC \
" (default: " #DEFAULT_VAL ")").str() \
},
@@ -187,7 +188,8 @@ void ento::printAnalyzerConfigList(raw_ostream &out) {
{ \
CMDFLAG, \
llvm::Twine(llvm::Twine() + "(" + \
- (#TYPE == "StringRef" ? "string" : #TYPE ) + ") " DESC \
+ (StringRef(#TYPE) == "StringRef" ? "string" : #TYPE ) + \
+ ") " DESC \
" (default: " #SHALLOW_VAL " in shallow mode, " #DEEP_VAL \
" in deep mode)").str() \
},
OpenPOWER on IntegriCloud