diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2015-04-10 11:24:51 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2015-04-10 11:24:51 +0000 |
| commit | 619c4e57ba8d8caac7a0ce41c403427f47ab50ee (patch) | |
| tree | 7e2e5cdff47178c8a291f148e1fe08dfe72a144c /llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp | |
| parent | e9c336aeb53b4137c214aa119067803f6464fae8 (diff) | |
| download | bcm5719-llvm-619c4e57ba8d8caac7a0ce41c403427f47ab50ee.tar.gz bcm5719-llvm-619c4e57ba8d8caac7a0ce41c403427f47ab50ee.zip | |
Reduce dyn_cast<> to isa<> or cast<> where possible.
No functional change intended.
llvm-svn: 234586
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp index 150dac34f05..a9ffa728228 100644 --- a/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp @@ -626,7 +626,7 @@ SelectionDAGBuilder::LowerStatepoint(ImmutableStatepoint ISP, // Add a leading constant argument with the Flags and the calling convention // masked together CallingConv::ID CallConv = CS.getCallingConv(); - int Flags = dyn_cast<ConstantInt>(CS.getArgument(2))->getZExtValue(); + int Flags = cast<ConstantInt>(CS.getArgument(2))->getZExtValue(); assert(Flags == 0 && "not expected to be used"); Ops.push_back(DAG.getTargetConstant(StackMaps::ConstantOp, MVT::i64)); Ops.push_back( |

