Skip to content

Commit 8a395b0

Browse files
committed
[DAG] Use auto* for cast/dyn_cast results (style). NFC.
1 parent e8877b2 commit 8a395b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2955,7 +2955,7 @@ bool TargetLowering::SimplifyDemandedBits(
29552955
const SDNode *N = Op.getNode();
29562956
for (SDNode *Op :
29572957
llvm::make_range(SDNodeIterator::begin(N), SDNodeIterator::end(N))) {
2958-
if (ConstantSDNode *C = dyn_cast<ConstantSDNode>(Op))
2958+
if (auto *C = dyn_cast<ConstantSDNode>(Op))
29592959
if (C->isOpaque())
29602960
return false;
29612961
}
@@ -4657,7 +4657,7 @@ SDValue TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
46574657
isa<LoadSDNode>(N0.getOperand(0)) &&
46584658
N0.getOperand(0).getNode()->hasOneUse() &&
46594659
isa<ConstantSDNode>(N0.getOperand(1))) {
4660-
LoadSDNode *Lod = cast<LoadSDNode>(N0.getOperand(0));
4660+
auto *Lod = cast<LoadSDNode>(N0.getOperand(0));
46614661
APInt bestMask;
46624662
unsigned bestWidth = 0, bestOffset = 0;
46634663
if (Lod->isSimple() && Lod->isUnindexed() &&
@@ -5727,7 +5727,7 @@ TargetLowering::ParseConstraints(const DataLayout &DL,
57275727
// The return value of the call is this value. As such, there is no
57285728
// corresponding argument.
57295729
assert(!Call.getType()->isVoidTy() && "Bad inline asm!");
5730-
if (StructType *STy = dyn_cast<StructType>(Call.getType())) {
5730+
if (auto *STy = dyn_cast<StructType>(Call.getType())) {
57315731
OpInfo.ConstraintVT =
57325732
getSimpleValueType(DL, STy->getElementType(ResNo));
57335733
} else {

0 commit comments

Comments
 (0)