Author: Krasimir Georgiev
Date: 2020-12-17T11:52:00+01:00
New Revision: e71a4cc20789f66470d69cbe32626761da642130

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

LOG: fix a -Wunused-variable warning in release build

Added: 
    

Modified: 
    llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp 
b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
index ef151a60a35c..657f7cb03249 100644
--- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
@@ -4453,9 +4453,8 @@ void SelectionDAGLegalize::ConvertNodeToLibcall(SDNode 
*Node) {
     SDValue Op = Node->getOperand(IsStrict ? 1 : 0);
     SDValue Chain = IsStrict ? Node->getOperand(0) : SDValue();
     EVT VT = Node->getValueType(0);
-    const ConstantSDNode *Trunc =
-        cast<ConstantSDNode>(Node->getOperand(IsStrict ? 2 : 1));
-    assert(Trunc->isNullValue() &&
+    assert(cast<ConstantSDNode>(Node->getOperand(IsStrict ? 2 : 1))
+               ->isNullValue() &&
            "Unable to expand as libcall if it is not normal rounding");
 
     RTLIB::Libcall LC = RTLIB::getFPROUND(Op.getValueType(), VT);


        
_______________________________________________
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to