projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8b80de
)
Doh, fix behaviour change introduced in r176168 which is tested in clang,
author
Nick Lewycky
<nicholas@mxc.ca>
Wed, 27 Feb 2013 06:21:30 +0000
(06:21 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Wed, 27 Feb 2013 06:21:30 +0000
(06:21 +0000)
not llvm.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176172
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Instrumentation/GCOVProfiling.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Instrumentation/GCOVProfiling.cpp
b/lib/Transforms/Instrumentation/GCOVProfiling.cpp
index 2cc2d4b9df07dee31e51f4a1dc8cc152a9a97092..09dea48e3988629b08fa9db75b3cdb7c2df35ed7 100644
(file)
--- a/
lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ b/
lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@
-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;