diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2013-03-09 10:13:26 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2013-03-09 10:13:26 +0000 |
commit | 60d16a27da8607ae94b93a90e37bcd5f8290160d (patch) | |
tree | 6f3117e36702aec70dfc2658ebd4a7caf6eb0433 | |
parent | 7394c5a37ce5c0fb153cfc8ec5f32822d5bf8668 (diff) |
Use the correct index variable. This is the meat of what was supposed to be in
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
-rw-r--r-- | lib/Transforms/Instrumentation/GCOVProfiling.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/lib/Transforms/Instrumentation/GCOVProfiling.cpp index cc0356e3d6..a79873cbf6 100644 --- 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()), |