Index: src/IceInstX8632.h |
diff --git a/src/IceInstX8632.h b/src/IceInstX8632.h |
index 81d3fd8c973dea7344b4f020d41de20cf96d708b..177843705355b9660a574fb233a0255d22929705 100644 |
--- a/src/IceInstX8632.h |
+++ b/src/IceInstX8632.h |
@@ -342,6 +342,7 @@ public: |
// Create a conditional branch to a node. |
static InstX8632Br *create(Cfg *Func, CfgNode *TargetTrue, |
CfgNode *TargetFalse, CondX86::BrCond Condition) { |
+ assert(Condition != CondX86::Br_None); |
const InstX8632Label *NoLabel = NULL; |
return new (Func->allocate<InstX8632Br>()) |
InstX8632Br(Func, TargetTrue, TargetFalse, NoLabel, Condition); |
@@ -358,6 +359,7 @@ public: |
// used for switch lowering. |
static InstX8632Br *create(Cfg *Func, CfgNode *Target, |
CondX86::BrCond Condition) { |
+ assert(Condition != CondX86::Br_None); |
const CfgNode *NoUncondTarget = NULL; |
const InstX8632Label *NoLabel = NULL; |
return new (Func->allocate<InstX8632Br>()) |