[Lldb-commits] [lldb] r219916 - A series of bit-flag values should be bitwise-or'ed not logical-or'ed.

Jason Molenda jmolenda at apple.com
Thu Oct 16 01:15:11 PDT 2014


Author: jmolenda
Date: Thu Oct 16 03:15:11 2014
New Revision: 219916

URL: http://llvm.org/viewvc/llvm-project?rev=219916&view=rev
Log:
A series of bit-flag values should be bitwise-or'ed not logical-or'ed.
clang unreachable code warning.

Modified:
    lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp

Modified: lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp?rev=219916&r1=219915&r2=219916&view=diff
==============================================================================
--- lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp (original)
+++ lldb/trunk/source/Expression/ClangExpressionDeclMap.cpp Thu Oct 16 03:15:11 2014
@@ -1274,10 +1274,10 @@ ClangExpressionDeclMap::FindExternalVisi
         {
             valobj = frame->GetValueForVariableExpressionPath(name_unique_cstr,
                                                               eNoDynamicValues,
-                                                              StackFrame::eExpressionPathOptionCheckPtrVsMember ||
-                                                              StackFrame::eExpressionPathOptionsAllowDirectIVarAccess ||
-                                                              StackFrame::eExpressionPathOptionsNoFragileObjcIvar ||
-                                                              StackFrame::eExpressionPathOptionsNoSyntheticChildren ||
+                                                              StackFrame::eExpressionPathOptionCheckPtrVsMember |
+                                                              StackFrame::eExpressionPathOptionsAllowDirectIVarAccess |
+                                                              StackFrame::eExpressionPathOptionsNoFragileObjcIvar |
+                                                              StackFrame::eExpressionPathOptionsNoSyntheticChildren |
                                                               StackFrame::eExpressionPathOptionsNoSyntheticArrayRange,
                                                               var,
                                                               err);





More information about the lldb-commits mailing list