summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorYonghong Song <yhs@fb.com>2017-07-15 06:08:08 +0000
committerYonghong Song <yhs@fb.com>2017-07-15 06:08:08 +0000
commitfbfae984b425782507f373982ed7bc5b6b0c9a05 (patch)
tree6db8e713ded9889c407bc890eecf069d3af0da8e /llvm/lib
parentb34635550a2d0fd3cc559023ce39374c5f99f0d5 (diff)
downloadbcm5719-llvm-fbfae984b425782507f373982ed7bc5b6b0c9a05.tar.gz
bcm5719-llvm-fbfae984b425782507f373982ed7bc5b6b0c9a05.zip
bpf: fix a compilation bug due to unused variable for release build
Signed-off-by: Yonghong Song <yhs@fb.com> llvm-svn: 308083
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/BPF/BPFISelLowering.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Target/BPF/BPFISelLowering.cpp b/llvm/lib/Target/BPF/BPFISelLowering.cpp
index c6e4f07aed7..81b0aa7f8b9 100644
--- a/llvm/lib/Target/BPF/BPFISelLowering.cpp
+++ b/llvm/lib/Target/BPF/BPFISelLowering.cpp
@@ -516,9 +516,8 @@ BPFTargetLowering::EmitInstrWithCustomInserter(MachineInstr &MI,
const TargetInstrInfo &TII = *BB->getParent()->getSubtarget().getInstrInfo();
DebugLoc DL = MI.getDebugLoc();
bool isSelectOp = MI.getOpcode() == BPF::Select;
- bool isSelectRiOp = MI.getOpcode() == BPF::Select_Ri;
- assert((isSelectOp || isSelectRiOp) && "Unexpected instr type to insert");
+ assert((isSelectOp || MI.getOpcode() == BPF::Select_Ri) && "Unexpected instr type to insert");
// To "insert" a SELECT instruction, we actually have to insert the diamond
// control-flow pattern. The incoming instruction knows the destination vreg
OpenPOWER on IntegriCloud