[Lldb-commits] [lldb] r233942 - Fix error resulting from llvm r233938.

Zachary Turner zturner at google.com
Thu Apr 2 13:37:10 PDT 2015


Author: zturner
Date: Thu Apr  2 15:37:10 2015
New Revision: 233942

URL: http://llvm.org/viewvc/llvm-project?rev=233942&view=rev
Log:
Fix error resulting from llvm r233938.

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

Modified: lldb/trunk/source/Expression/IRForTarget.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Expression/IRForTarget.cpp?rev=233942&r1=233941&r2=233942&view=diff
==============================================================================
--- lldb/trunk/source/Expression/IRForTarget.cpp (original)
+++ lldb/trunk/source/Expression/IRForTarget.cpp Thu Apr  2 15:37:10 2015
@@ -2455,7 +2455,7 @@ IRForTarget::BuildRelocation(llvm::Type
 
     llvm::ArrayRef<llvm::Constant *> offsets(offset_array, 1);
 
-    llvm::Constant *reloc_getelementptr = ConstantExpr::getGetElementPtr(m_reloc_placeholder, offsets);
+    llvm::Constant *reloc_getelementptr = ConstantExpr::getGetElementPtr(type, m_reloc_placeholder, offsets);
     llvm::Constant *reloc_getbitcast = ConstantExpr::getBitCast(reloc_getelementptr, type);
 
     return reloc_getbitcast;





More information about the lldb-commits mailing list