diff options
author | Dan Gohman <gohman@apple.com> | 2010-04-14 17:11:23 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-04-14 17:11:23 +0000 |
commit | ad0b3ea3ccd55a52b0289f63e1c19b226eb1a2bf (patch) | |
tree | f48bb3ad39444391c7e5e2baab33dd509ad7697d /llvm/lib/CodeGen | |
parent | 0f405c8d734bf49e620bd0bcb6b18187f5bd9a64 (diff) | |
download | bcm5719-llvm-ad0b3ea3ccd55a52b0289f63e1c19b226eb1a2bf.tar.gz bcm5719-llvm-ad0b3ea3ccd55a52b0289f63e1c19b226eb1a2bf.zip |
Move this assert out of SelectionDAGISel into FunctionLoweringInfo, and
drop the redundant #ifndef NDEBUG.
llvm-svn: 101261
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 3 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp index d7ed46a08ad..43cc6603a4e 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp @@ -243,6 +243,9 @@ void FunctionLoweringInfo::set(Function &fn, MachineFunction &mf, /// FunctionLoweringInfo to an empty state, ready to be used for a /// different function. void FunctionLoweringInfo::clear() { + assert(CatchInfoFound.size() == CatchInfoLost.size() && + "Not all catch info was assigned to a landing pad!"); + MBBMap.clear(); ValueMap.clear(); StaticAllocaMap.clear(); diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 8583336df66..1438fe2b5d4 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -221,11 +221,6 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) { // emitting the code for the block. RegInfo->EmitLiveInCopies(MF->begin(), TRI, TII); -#ifndef NDEBUG - assert(FuncInfo->CatchInfoFound.size() == FuncInfo->CatchInfoLost.size() && - "Not all catch info was assigned to a landing pad!"); -#endif - // Release function-specific state. SDB and CurDAG are already cleared // at this point. FuncInfo->clear(); |