[llvm] fb193db - [PowerPC] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 19 22:35:10 PDT 2022


Author: Fangrui Song
Date: 2022-04-19T22:35:05-07:00
New Revision: fb193db2c79cb7c7c80fb5f537f16170d91b45e5

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

LOG: [PowerPC] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off builds

Added: 
    

Modified: 
    llvm/lib/Target/PowerPC/PPCISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
index 27ecece4bd607..745007ad7f87f 100644
--- a/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+++ b/llvm/lib/Target/PowerPC/PPCISelLowering.cpp
@@ -10577,6 +10577,7 @@ SDValue PPCTargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
         all_of(Op->ops().drop_front(4),
                [VT](const SDUse &Use) { return Use.getValueType() == VT; }) &&
         "ppc_[max|min]f[e|l|s] must have uniform type arguments");
+    (void)VT;
     ISD::CondCode CC = ISD::SETGT;
     if (IntrinsicID == Intrinsic::ppc_minfe ||
         IntrinsicID == Intrinsic::ppc_minfl ||


        


More information about the llvm-commits mailing list