[Lldb-commits] [lldb] bafa145 - [lldb][NFC] Remove dependency on DataLayout::getPrefTypeAlignment

Guillaume Chatelet via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 13 07:06:04 PST 2023


Author: Guillaume Chatelet
Date: 2023-01-13T15:04:06Z
New Revision: bafa145c0eb63ac0c7b662bd646aa2c73cbc07b7

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

LOG: [lldb][NFC] Remove dependency on DataLayout::getPrefTypeAlignment

Added: 
    

Modified: 
    lldb/source/Expression/IRInterpreter.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Expression/IRInterpreter.cpp b/lldb/source/Expression/IRInterpreter.cpp
index 8e09e9f022442..36a8a74ed9efb 100644
--- a/lldb/source/Expression/IRInterpreter.cpp
+++ b/lldb/source/Expression/IRInterpreter.cpp
@@ -408,7 +408,7 @@ class InterpreterStackFrame {
     lldb_private::Status alloc_error;
 
     return Malloc(m_target_data.getTypeAllocSize(type),
-                  m_target_data.getPrefTypeAlignment(type));
+                  m_target_data.getPrefTypeAlign(type).value());
   }
 
   std::string PrintData(lldb::addr_t addr, llvm::Type *type) {


        


More information about the lldb-commits mailing list