[Lldb-commits] [lldb] dc91a55 - [lldb] Fix fallout from e9eaf7b430ee

Alex Langford via lldb-commits lldb-commits at lists.llvm.org
Fri May 5 14:57:35 PDT 2023


Author: Alex Langford
Date: 2023-05-05T14:56:49-07:00
New Revision: dc91a55b2c8fe71077b3131e93afe46a532bcc93

URL: https://github.com/llvm/llvm-project/commit/dc91a55b2c8fe71077b3131e93afe46a532bcc93
DIFF: https://github.com/llvm/llvm-project/commit/dc91a55b2c8fe71077b3131e93afe46a532bcc93.diff

LOG: [lldb] Fix fallout from e9eaf7b430ee

Minor logic mistake. This caused TestObjCClassMethod to fail.

Added: 
    

Modified: 
    lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
index daab7be4b58b..9cf70f1b73d8 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
@@ -534,7 +534,7 @@ addr_t ClangExpressionDeclMap::GetSymbolAddress(Target &target,
   addr_t symbol_load_addr = LLDB_INVALID_ADDRESS;
 
   for (const SymbolContext &sym_ctx : sc_list) {
-    if (symbol_load_addr != 0 || symbol_load_addr != LLDB_INVALID_ADDRESS)
+    if (symbol_load_addr != 0 && symbol_load_addr != LLDB_INVALID_ADDRESS)
       break;
 
     const Address sym_address = sym_ctx.symbol->GetAddress();


        


More information about the lldb-commits mailing list