mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-20 11:32:33 +00:00
Doh, fix behaviour change introduced in r176168 which is tested in clang,
not llvm. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176172 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8b80de1a9
commit
58591b1647
@ -735,7 +735,9 @@ void GCOVProfiler::insertIndirectCounterIncrement() {
|
||||
Arg->setName("counters");
|
||||
Value *GEP = Builder.CreateGEP(Arg, ZExtPred);
|
||||
Value *Counter = Builder.CreateLoad(GEP, "counter");
|
||||
Cond = Builder.CreateICmpEQ(Counter, Builder.getInt64(0));
|
||||
Cond = Builder.CreateICmpEQ(Counter,
|
||||
Constant::getNullValue(
|
||||
Builder.getInt64Ty()->getPointerTo()));
|
||||
Builder.CreateCondBr(Cond, Exit, CounterEnd);
|
||||
|
||||
// ++*counter;
|
||||
|
Loading…
x
Reference in New Issue
Block a user