Use the correct predicate for determining if a branch is conditional or not.
authorOwen Anderson <resistor@mac.com>
Mon, 17 Oct 2011 21:21:44 +0000 (21:21 +0000)
committerOwen Anderson <resistor@mac.com>
Mon, 17 Oct 2011 21:21:44 +0000 (21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142257 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/MC/MCInstrAnalysis.h

index 8f3c499b1c7382276416ca218f4a0303aa8d3d87..acad6336aca736bd8b547f79b1787edde59c8136 100644 (file)
@@ -33,7 +33,7 @@ public:
   }
 
   virtual bool isConditionalBranch(const MCInst &Inst) const {
-    return Info->get(Inst.getOpcode()).isBranch();
+    return Info->get(Inst.getOpcode()).isConditionalBranch();
   }
 
   virtual bool isUnconditionalBranch(const MCInst &Inst) const {