summaryrefslogtreecommitdiff
path: root/lib/CodeGen/IfConversion.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/IfConversion.cpp
parent614be08dd6ae0755d8a4c32ad49f5f580602cc78 (diff)
downloadllvm-f36892335b4919b9120e48a792e6b3630b9de978.tar.gz
llvm-f36892335b4919b9120e48a792e6b3630b9de978.tar.bz2
llvm-f36892335b4919b9120e48a792e6b3630b9de978.tar.xz
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/IfConversion.cpp')
-rw-r--r--lib/CodeGen/IfConversion.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/CodeGen/IfConversion.cpp b/lib/CodeGen/IfConversion.cpp
index 739c06b11a..02249c9fce 100644
--- a/lib/CodeGen/IfConversion.cpp
+++ b/lib/CodeGen/IfConversion.cpp
@@ -1132,10 +1132,10 @@ void IfConverter::PredicateBlock(BBInfo &BBI,
if (TII->isPredicated(I))
continue;
if (!TII->PredicateInstruction(I, Cond)) {
- std::string msg;
- raw_string_ostream Msg(msg);
- Msg << "Unable to predicate " << *I << "!";
- llvm_report_error(Msg.str());
+#ifndef NDEBUG
+ cerr << "Unable to predicate " << *I << "!\n";
+#endif
+ llvm_unreachable();
}
}
@@ -1168,10 +1168,10 @@ void IfConverter::CopyAndPredicateBlock(BBInfo &ToBBI, BBInfo &FromBBI,
if (!isPredicated)
if (!TII->PredicateInstruction(MI, Cond)) {
- std::string msg;
- raw_string_ostream Msg(msg);
- Msg << "Unable to predicate " << *MI << "!";
- llvm_report_error(Msg.str());
+#ifndef NDEBUG
+ cerr << "Unable to predicate " << *I << "!\n";
+#endif
+ llvm_unreachable();
}
}