mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-26 09:18:56 +00:00
bug 122:
- Replace ConstantPointerRef usage with GlobalValue usage git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -243,7 +243,7 @@ static void InsertPrintInst(Value *V, BasicBlock *BB, Instruction *InsertBefore,
|
||||
GlobalVariable *fmtVal = getStringRef(Mod, Message+getPrintfCodeFor(V)+"\n");
|
||||
|
||||
// Turn the format string into an sbyte *
|
||||
Constant *GEP =ConstantExpr::getGetElementPtr(ConstantPointerRef::get(fmtVal),
|
||||
Constant *GEP=ConstantExpr::getGetElementPtr(fmtVal,
|
||||
std::vector<Constant*>(2,Constant::getNullValue(Type::LongTy)));
|
||||
|
||||
// Insert a call to the hash function if this is a pointer value
|
||||
|
Reference in New Issue
Block a user