Skip to content

Commit d6c4844

Browse files
rovkaarsenm
andauthored
Style issues in llvm/lib/Target/AMDGPU/SIISelLowering.cpp
Co-authored-by: Matt Arsenault <[email protected]>
1 parent b848934 commit d6c4844

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3710,10 +3710,10 @@ SDValue SITargetLowering::LowerCall(CallLoweringInfo &CLI,
37103710
// Convert constants into TargetConstants, so they become immediate operands
37113711
// instead of being selected into S_MOV.
37123712
auto PushNodeOrTargetConstant = [&](TargetLowering::ArgListEntry Arg) {
3713-
if (auto ArgNode = dyn_cast<ConstantSDNode>(Arg.Node))
3713+
if (const auto *ArgNode = dyn_cast<ConstantSDNode>(Arg.Node)) {
37143714
ChainCallSpecialArgs.push_back(DAG.getTargetConstant(
37153715
ArgNode->getAPIntValue(), DL, ArgNode->getValueType(0)));
3716-
else
3716+
} else
37173717
ChainCallSpecialArgs.push_back(Arg.Node);
37183718
};
37193719

0 commit comments

Comments
 (0)