Micro optimization: this code only needs to look at eh labels.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Mar 2014 16:31:40 +0000 (16:31 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 6 Mar 2014 16:31:40 +0000 (16:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203127 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfException.cpp

index dd4cad683deec9b3280a099ecbc9cd2c354c4c71..42895300fc685ebe1b12dfaf1150595dee2cace7 100644 (file)
@@ -241,7 +241,7 @@ ComputeCallSiteTable(SmallVectorImpl<CallSiteEntry> &CallSites,
        I != E; ++I) {
     for (MachineBasicBlock::const_iterator MI = I->begin(), E = I->end();
          MI != E; ++MI) {
-      if (!MI->isLabel()) {
+      if (!MI->isEHLabel()) {
         if (MI->isCall())
           SawPotentiallyThrowing |= !CallToNoUnwindFunction(MI);
         continue;