From: Rafael Espindola Date: Thu, 6 Mar 2014 16:31:40 +0000 (+0000) Subject: Micro optimization: this code only needs to look at eh labels. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=371e07f1a947d8e83d56239d12b8d23d5ca8ebe7;p=oota-llvm.git Micro optimization: this code only needs to look at eh labels. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203127 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/DwarfException.cpp b/lib/CodeGen/AsmPrinter/DwarfException.cpp index dd4cad683de..42895300fc6 100644 --- a/lib/CodeGen/AsmPrinter/DwarfException.cpp +++ b/lib/CodeGen/AsmPrinter/DwarfException.cpp @@ -241,7 +241,7 @@ ComputeCallSiteTable(SmallVectorImpl &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;