diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-08-16 20:45:24 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-08-16 20:45:24 +0000 |
commit | 8ddfc09e7ac778e6a2215e345b0cd5d1c4fa3b8c (patch) | |
tree | f7376fd39dd4d7572ddec3a648049a3e73b6c75c /llvm/lib/Transforms/Instrumentation | |
parent | ee1c2d2437a0918b17bf39b92296cb43c0394eb3 (diff) | |
download | bcm5719-llvm-8ddfc09e7ac778e6a2215e345b0cd5d1c4fa3b8c.tar.gz bcm5719-llvm-8ddfc09e7ac778e6a2215e345b0cd5d1c4fa3b8c.zip |
Use the getFirstInsertionPt() method instead of getFirstNonPHI + an 'isa<>'
check for a LandingPadInst.
llvm-svn: 137745
Diffstat (limited to 'llvm/lib/Transforms/Instrumentation')
-rw-r--r-- | llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp index 4f22bbc9c7f..622ac1fc4ee 100644 --- a/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp +++ b/llvm/lib/Transforms/Instrumentation/GCOVProfiling.cpp @@ -505,8 +505,8 @@ bool GCOVProfiler::emitProfileArcs(DebugInfoFinder &DIF) { } for (int i = 0, e = ComplexEdgeSuccs.size(); i != e; ++i) { // call runtime to perform increment - BasicBlock::iterator InsertPt = ComplexEdgeSuccs[i+1]->getFirstNonPHI(); - if (isa<LandingPadInst>(InsertPt)) ++InsertPt; + BasicBlock::iterator InsertPt = + ComplexEdgeSuccs[i+1]->getFirstInsertionPt(); IRBuilder<> Builder(InsertPt); Value *CounterPtrArray = Builder.CreateConstInBoundsGEP2_64(EdgeTable, 0, |