diff options
| author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-04 23:11:13 +0000 | 
|---|---|---|
| committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2011-02-04 23:11:13 +0000 | 
| commit | e8ac8e93a1472596706b965922852bb3f56eaccc (patch) | |
| tree | 7c359a7708dcc6d08e87a92d03502e8b0b5103bc /llvm/lib | |
| parent | ea745e86c86df6ac2fbb6776adbc4ff5af06bf96 (diff) | |
| download | bcm5719-llvm-e8ac8e93a1472596706b965922852bb3f56eaccc.tar.gz bcm5719-llvm-e8ac8e93a1472596706b965922852bb3f56eaccc.zip  | |
Apparently, it is possible for a block with a landing pad successor to have no calls.
In that case we simply ignore the landing pad and split live ranges before the
first terminator.
llvm-svn: 124907
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/LiveIntervalAnalysis.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp index 32c553ff12d..e769df5b76d 100644 --- a/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp +++ b/llvm/lib/CodeGen/LiveIntervalAnalysis.cpp @@ -764,7 +764,7 @@ LiveIntervals::getLastSplitPoint(const LiveInterval &li,      if (I->getDesc().isCall())        return I;    } -  assert(0 && "Block with landing pad successor contains no call instruction"); +  // The block contains no calls that can throw, so use the first terminator.    return mbb->getFirstTerminator();  }  | 

