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.

llvm-svn: 176764
This commit is contained in:
Nick Lewycky 2013-03-09 10:13:26 +00:00
parent 4288f9ef17
commit 291df6ec42
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ void GCOVProfiler::insertCounterWriteout(
for (unsigned j = 0, e = CountersBySP.size(); j != e; ++j) { for (unsigned j = 0, e = CountersBySP.size(); j != e; ++j) {
DISubprogram SP(CountersBySP[j].second); DISubprogram SP(CountersBySP[j].second);
Builder.CreateCall3(EmitFunction, Builder.CreateCall3(EmitFunction,
Builder.getInt32(i), Builder.getInt32(j),
NoFunctionNamesInData ? NoFunctionNamesInData ?
Constant::getNullValue(Builder.getInt8PtrTy()) : Constant::getNullValue(Builder.getInt8PtrTy()) :
Builder.CreateGlobalStringPtr(SP.getName()), Builder.CreateGlobalStringPtr(SP.getName()),