Increment counter that keeps track of total number of sret promoted.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47892 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2008-03-04 17:48:11 +00:00
parent d0f4103a31
commit df1d15c52e

View File

@ -94,6 +94,7 @@ bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
return false;
}
NumSRET++;
// [1] Replace use of sret parameter
AllocaInst *TheAlloca = new AllocaInst (STy, NULL, "mrv",
F->getEntryBlock().begin());