[CodeGen] Remove usage of NDEBUG in header.
authorDavide Italiano <davide@freebsd.org>
Fri, 23 Oct 2015 00:17:40 +0000 (00:17 +0000)
committerDavide Italiano <davide@freebsd.org>
Fri, 23 Oct 2015 00:17:40 +0000 (00:17 +0000)
Moreover, this seems unused.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@251081 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/FunctionLoweringInfo.h
lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp

index 21205a163f5c260f12d9bf9dce6668a44ea6c8f2..bd8da736c16b9e370673555b93d8a0a5fb048f30 100644 (file)
@@ -114,11 +114,6 @@ public:
   /// MBB - The current insert position inside the current block.
   MachineBasicBlock::iterator InsertPt;
 
-#ifndef NDEBUG
-  SmallPtrSet<const Instruction *, 8> CatchInfoLost;
-  SmallPtrSet<const Instruction *, 8> CatchInfoFound;
-#endif
-
   struct LiveOutInfo {
     unsigned NumSignBits : 31;
     bool IsValid : 1;
index bc97d63582f4211457bea40390d377acb8174ba8..c3744f7494f6ea7ad1037603a73c48573da7fedf 100644 (file)
@@ -341,16 +341,9 @@ void FunctionLoweringInfo::set(const 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();
-#ifndef NDEBUG
-  CatchInfoLost.clear();
-  CatchInfoFound.clear();
-#endif
   LiveOutRegInfo.clear();
   VisitedBBs.clear();
   ArgDbgValues.clear();