[llvm] 734f086 - [NFC] Fix unused var in release builds

Jordan Rupprecht via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 11 10:11:43 PST 2020


Author: Jordan Rupprecht
Date: 2020-02-11T10:10:52-08:00
New Revision: 734f086b42c7e2d7aaee41cc4babad7ef8dcdb9c

URL: https://github.com/llvm/llvm-project/commit/734f086b42c7e2d7aaee41cc4babad7ef8dcdb9c
DIFF: https://github.com/llvm/llvm-project/commit/734f086b42c7e2d7aaee41cc4babad7ef8dcdb9c.diff

LOG: [NFC] Fix unused var in release builds

Added: 
    

Modified: 
    llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp b/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
index a0b68ed936e5..3ddba25fcef6 100644
--- a/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
+++ b/llvm/lib/Target/Mips/MipsSEISelDAGToDAG.cpp
@@ -860,6 +860,7 @@ bool MipsSEDAGToDAGISel::trySelect(SDNode *Node) {
       const SDValue &Constant = Node->getOperand(3);
 
       assert(Chain.getValueType() == MVT::Other);
+      (void)Intrinsic;
       assert(Intrinsic.getOpcode() == ISD::TargetConstant &&
              Constant.getOpcode() == ISD::Constant &&
              "Invalid instruction operand.");
@@ -931,6 +932,7 @@ bool MipsSEDAGToDAGISel::trySelect(SDNode *Node) {
       const SDValue &Constant = Node->getOperand(4);
 
       assert(Chain.getValueType() == MVT::Other);
+      (void)Intrinsic;
       assert(Intrinsic.getOpcode() == ISD::TargetConstant &&
              Constant.getOpcode() == ISD::Constant &&
              "Invalid instruction operand.");


        


More information about the llvm-commits mailing list