Author: szelethus
Date: Fri Nov  2 12:48:56 2018
New Revision: 346033

URL: http://llvm.org/viewvc/llvm-project?rev=346033&view=rev
Log:
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

Modified:
    cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp
URL: 
http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp?rev=346033&r1=346032&r2=346033&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Frontend/CheckerRegistration.cpp Fri Nov  2 
12:48:56 2018
@@ -178,7 +178,8 @@ void ento::printAnalyzerConfigList(raw_o
     {                                                                          
\
       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_o
     {                                                                          
\
       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()                                      
\
     },


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to