[llvm] r208618 - Use cast<> for unchecked use
Matt Arsenault
Matthew.Arsenault at amd.com
Mon May 12 12:26:38 PDT 2014
Author: arsenm
Date: Mon May 12 14:26:38 2014
New Revision: 208618
URL: http://llvm.org/viewvc/llvm-project?rev=208618&view=rev
Log:
Use cast<> for unchecked use
Modified:
llvm/trunk/lib/Target/R600/R600ISelLowering.cpp
Modified: llvm/trunk/lib/Target/R600/R600ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/R600ISelLowering.cpp?rev=208618&r1=208617&r2=208618&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/R600ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/R600/R600ISelLowering.cpp Mon May 12 14:26:38 2014
@@ -1822,8 +1822,8 @@ FoldOperand(SDNode *ParentNode, unsigned
if (RegisterSDNode *Reg =
dyn_cast<RegisterSDNode>(ParentNode->getOperand(OtherSrcIdx))) {
if (Reg->getReg() == AMDGPU::ALU_CONST) {
- ConstantSDNode *Cst = dyn_cast<ConstantSDNode>(
- ParentNode->getOperand(OtherSelIdx));
+ ConstantSDNode *Cst
+ = cast<ConstantSDNode>(ParentNode->getOperand(OtherSelIdx));
Consts.push_back(Cst->getZExtValue());
}
}
More information about the llvm-commits
mailing list