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:
7394c5a
)
Use the correct index variable. This is the meat of what was supposed to be in
author
Nick Lewycky
<nicholas@mxc.ca>
Sat, 9 Mar 2013 10:13:26 +0000
(10:13 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Sat, 9 Mar 2013 10:13:26 +0000
(10:13 +0000)
r176751. Also, learn a lesson about applying patches by hand/eyeball.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176764
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 cc0356e3d6adcb5d7beb36e2a7d2a9ac73b583d7..a79873cbf60f9b5a683799ea98db8a3c8caf54b0 100644
(file)
--- a/
lib/Transforms/Instrumentation/GCOVProfiling.cpp
+++ b/
lib/Transforms/Instrumentation/GCOVProfiling.cpp
@@
-668,7
+668,7
@@
void GCOVProfiler::insertCounterWriteout(
for (unsigned j = 0, e = CountersBySP.size(); j != e; ++j) {
DISubprogram SP(CountersBySP[j].second);
Builder.CreateCall3(EmitFunction,
- Builder.getInt32(
i
),
+ Builder.getInt32(
j
),
NoFunctionNamesInData ?
Constant::getNullValue(Builder.getInt8PtrTy()) :
Builder.CreateGlobalStringPtr(SP.getName()),