[llvm] r261037 - [WebAssembly] Use SDValue::getConstantOperandVal. NFC.

Dan Gohman via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 16 16:14:03 PST 2016


Author: djg
Date: Tue Feb 16 18:14:03 2016
New Revision: 261037

URL: http://llvm.org/viewvc/llvm-project?rev=261037&view=rev
Log:
[WebAssembly] Use SDValue::getConstantOperandVal. NFC.

Modified:
    llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp

Modified: llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp?rev=261037&r1=261036&r2=261037&view=diff
==============================================================================
--- llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp Tue Feb 16 18:14:03 2016
@@ -583,7 +583,7 @@ SDValue WebAssemblyTargetLowering::Lower
   // Non-zero depths are not supported by WebAssembly currently. Use the
   // legalizer's default expansion, which is to return 0 (what this function is
   // documented to do).
-  if (cast<ConstantSDNode>(Op.getOperand(0))->getZExtValue() > 0)
+  if (Op.getConstantOperandVal(0) > 0)
     return SDValue();
 
   DAG.getMachineFunction().getFrameInfo()->setFrameAddressIsTaken(true);




More information about the llvm-commits mailing list