[Lldb-commits] [lldb] r346220 - Add parens to silence warning

Benjamin Kramer via lldb-commits lldb-commits at lists.llvm.org
Tue Nov 6 02:13:37 PST 2018


Author: d0k
Date: Tue Nov  6 02:13:37 2018
New Revision: 346220

URL: http://llvm.org/viewvc/llvm-project?rev=346220&view=rev
Log:
Add parens to silence warning

MSVCUndecoratedNameParser.cpp:25:36: warning: '&&' within '||' [-Wlogical-op-parentheses]

Modified:
    lldb/trunk/source/Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp

Modified: lldb/trunk/source/Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp?rev=346220&r1=346219&r2=346220&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp (original)
+++ lldb/trunk/source/Plugins/Language/CPlusPlus/MSVCUndecoratedNameParser.cpp Tue Nov  6 02:13:37 2018
@@ -22,7 +22,7 @@ MSVCUndecoratedNameParser::MSVCUndecorat
       // Do not treat `operator<' and `operator<<' as templates
       // (sometimes they represented as `<' and `<<' in the name).
       if (i == last_base_start ||
-          i == last_base_start + 1 && name[last_base_start] == '<')
+          (i == last_base_start + 1 && name[last_base_start] == '<'))
         break;
 
       stack.push(i);




More information about the lldb-commits mailing list