From ad0b3ea3ccd55a52b0289f63e1c19b226eb1a2bf Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 14 Apr 2010 17:11:23 +0000 Subject: Move this assert out of SelectionDAGISel into FunctionLoweringInfo, and drop the redundant #ifndef NDEBUG. llvm-svn: 101261 --- llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp') 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(); -- cgit v1.2.3