Skip to content

Commit 2bd97ba

Browse files
committed
[X86] LowerGlobalOrExternal - cleanup SDLoc. NFC.
Don't create a new local SDLoc and then take a reference to it, just create the SDLoc directly.
1 parent 67c1872 commit 2bd97ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18559,7 +18559,7 @@ X86TargetLowering::LowerBlockAddress(SDValue Op, SelectionDAG &DAG) const {
1855918559
SDValue X86TargetLowering::LowerGlobalOrExternal(SDValue Op, SelectionDAG &DAG,
1856018560
bool ForCall) const {
1856118561
// Unpack the global address or external symbol.
18562-
const SDLoc &dl = SDLoc(Op);
18562+
SDLoc dl(Op);
1856318563
const GlobalValue *GV = nullptr;
1856418564
int64_t Offset = 0;
1856518565
const char *ExternalSym = nullptr;

0 commit comments

Comments
 (0)