mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-02 19:24:25 +00:00
[opaque pointer type] More GEP API migrations in IRBuilder uses
The plan here is to push the API changes out from the common components (like Constant::getGetElementPtr and IRBuilder::CreateGEP related functions) and just update callers to either pass the type if it's obvious, or pass null. Do this with LoadInst as well and anything else that comes up, then to start porting specific uses to not pass null anymore - this may require some refactoring in each case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234042 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -925,7 +925,7 @@ void GCOVProfiler::insertIndirectCounterIncrement() {
|
||||
Value *ZExtPred = Builder.CreateZExt(Pred, Builder.getInt64Ty());
|
||||
Arg = std::next(Fn->arg_begin());
|
||||
Arg->setName("counters");
|
||||
Value *GEP = Builder.CreateGEP(Arg, ZExtPred);
|
||||
Value *GEP = Builder.CreateGEP(Type::getInt64PtrTy(*Ctx), Arg, ZExtPred);
|
||||
Value *Counter = Builder.CreateLoad(GEP, "counter");
|
||||
Cond = Builder.CreateICmpEQ(Counter,
|
||||
Constant::getNullValue(
|
||||
|
Reference in New Issue
Block a user