aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorTorok Edwin <edwintorok@gmail.com>2009-07-12 20:07:01 +0000
committerTorok Edwin <edwintorok@gmail.com>2009-07-12 20:07:01 +0000
commitf36892335b4919b9120e48a792e6b3630b9de978 (patch)
tree7a5c22e5311a5e53602a173130e75a607bb1301b /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent614be08dd6ae0755d8a4c32ad49f5f580602cc78 (diff)
Fix assert(0) conversion, as suggested by Chris.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75423 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index b084ab79a7..6d7c9c07de 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -152,9 +152,12 @@ namespace llvm {
// basic blocks, and the scheduler passes ownership of it to this method.
MachineBasicBlock *TargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI,
MachineBasicBlock *MBB) const {
- llvm_report_error("If a target marks an instruction with "
- "'usesCustomDAGSchedInserter', it must implement "
- "TargetLowering::EmitInstrWithCustomInserter!");
+#ifndef NDEBUG
+ cerr << "If a target marks an instruction with "
+ "'usesCustomDAGSchedInserter', it must implement "
+ "TargetLowering::EmitInstrWithCustomInserter!";
+#endif
+ llvm_unreachable();
return 0;
}
@@ -831,8 +834,8 @@ void SelectionDAGISel::SelectAllBasicBlocks(Function &Fn,
cerr << "FastISel miss: ";
BI->dump();
}
- if (EnableFastISelAbort)
- LLVM_UNREACHABLE("FastISel didn't handle a PHI in a successor");
+ assert(!EnableFastISelAbort &&
+ "FastISel didn't handle a PHI in a successor");
break;
}