[Lldb-commits] [lldb] d4514b1 - [LLDB][NativePDB] Pass register_kind as reference (an oversight in 71d778f).

Zequan Wu via lldb-commits lldb-commits at lists.llvm.org
Tue Sep 20 13:41:24 PDT 2022


Author: Zequan Wu
Date: 2022-09-20T13:41:13-07:00
New Revision: d4514b155337f013022c6e989d3e6b7183a8b80e

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

LOG: [LLDB][NativePDB] Pass register_kind as reference (an oversight in 71d778f).

Fix #57799

Added: 
    

Modified: 
    lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp b/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp
index b1436575d881c..b29c153367594 100644
--- a/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp
+++ b/lldb/source/Plugins/SymbolFile/NativePDB/DWARFLocationExpression.cpp
@@ -129,7 +129,7 @@ static DWARFExpression MakeLocationExpressionInternal(lldb::ModuleSP module,
 }
 
 static bool MakeRegisterBasedLocationExpressionInternal(
-    Stream &stream, llvm::codeview::RegisterId reg, RegisterKind register_kind,
+    Stream &stream, llvm::codeview::RegisterId reg, RegisterKind &register_kind,
     llvm::Optional<int32_t> relative_offset, lldb::ModuleSP module) {
   uint32_t reg_num = GetRegisterNumber(module->GetArchitecture().GetMachine(),
                                        reg, register_kind);


        


More information about the lldb-commits mailing list