Skip to content

Commit 6216bc5

Browse files
committed
Drop curly braces around single line statement
1 parent a8cd4f7 commit 6216bc5

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,11 +20186,10 @@ 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 (auto *S = dyn_cast<GlobalAddressSDNode>(Callee)) {
20189+
if (auto *S = dyn_cast<GlobalAddressSDNode>(Callee))
2019020190
Callee = getLargeGlobalAddress(S, DL, PtrVT, DAG);
20191-
} else if (auto *S = dyn_cast<ExternalSymbolSDNode>(Callee)) {
20191+
else if (auto *S = dyn_cast<ExternalSymbolSDNode>(Callee))
2019220192
Callee = getLargeExternalSymbol(S, DL, PtrVT, DAG);
20193-
}
2019420193
} else if (GlobalAddressSDNode *S = dyn_cast<GlobalAddressSDNode>(Callee)) {
2019520194
const GlobalValue *GV = S->getGlobal();
2019620195
Callee = DAG.getTargetGlobalAddress(GV, DL, PtrVT, 0, RISCVII::MO_CALL);

0 commit comments

Comments
 (0)