Skip to content

Commit a8cd4f7

Browse files
committed
Use auto *
1 parent ee38bb4 commit a8cd4f7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20186,10 +20186,9 @@ SDValue RISCVTargetLowering::LowerCall(CallLoweringInfo &CLI,
2018620186
// TargetGlobalAddress/TargetExternalSymbol node so that legalize won't
2018720187
// split it and then direct call can be matched by PseudoCALL.
2018820188
if (getTargetMachine().getCodeModel() == CodeModel::Large) {
20189-
if (GlobalAddressSDNode *S = dyn_cast<GlobalAddressSDNode>(Callee)) {
20189+
if (auto *S = dyn_cast<GlobalAddressSDNode>(Callee)) {
2019020190
Callee = getLargeGlobalAddress(S, DL, PtrVT, DAG);
20191-
} else if (ExternalSymbolSDNode *S =
20192-
dyn_cast<ExternalSymbolSDNode>(Callee)) {
20191+
} else if (auto *S = dyn_cast<ExternalSymbolSDNode>(Callee)) {
2019320192
Callee = getLargeExternalSymbol(S, DL, PtrVT, DAG);
2019420193
}
2019520194
} else if (GlobalAddressSDNode *S = dyn_cast<GlobalAddressSDNode>(Callee)) {

0 commit comments

Comments
 (0)