Skip to content

Commit

Permalink
[AArch64] Fix a warning
Browse files Browse the repository at this point in the history
This patch fixes:

  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp:6890:25: error:
  unused variable 'TLI' [-Werror,-Wunused-variable]
  • Loading branch information
kazutakahirata committed Jan 31, 2025
1 parent f8300f1 commit bf34884
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6897,6 +6897,7 @@ static SDValue LowerADDRSPACECAST(SDValue Op, SelectionDAG &DAG) {
assert(TLI.getTargetMachine().getPointerSize(SrcAS) !=
TLI.getTargetMachine().getPointerSize(DestAS) &&
"addrspacecast must be between different ptr sizes");
(void)TLI;

if (SrcAS == ARM64AS::PTR32_SPTR) {
return DAG.getNode(ISD::SIGN_EXTEND, dl, DestVT, Src,
Expand Down

0 comments on commit bf34884

Please sign in to comment.