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
This commit is contained in:
Kristof Umann 2018-11-02 19:48:56 +00:00
parent 88e8763bae
commit 37829b56a1
1 changed files with 4 additions and 2 deletions

View File

@ -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() \
},