summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
diff options
context:
space:
mode:
authorDan Gohman <dan433584@gmail.com>2016-02-17 00:14:03 +0000
committerDan Gohman <dan433584@gmail.com>2016-02-17 00:14:03 +0000
commit1d547bf566223a389aebe97027dc235d85b80c9d (patch)
tree75ab7caa9933c705e45d536ca08401a26d256644 /llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
parent08ea2c7537b450c6c6bb1d251f2eb52bc241f306 (diff)
downloadbcm5719-llvm-1d547bf566223a389aebe97027dc235d85b80c9d.tar.gz
bcm5719-llvm-1d547bf566223a389aebe97027dc235d85b80c9d.zip
[WebAssembly] Use SDValue::getConstantOperandVal. NFC.
llvm-svn: 261037
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp')
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
index c5ec506804c..796b42c77ce 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
@@ -583,7 +583,7 @@ SDValue WebAssemblyTargetLowering::LowerFRAMEADDR(SDValue Op,
// 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);
OpenPOWER on IntegriCloud