diff --git a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp index 3ce766fc173c8e..bdc3fc630a4e3b 100644 --- a/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp +++ b/llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp @@ -1170,7 +1170,7 @@ void AArch64AsmPrinter::emitFunctionEntryLabel() { auto emitFunctionAlias = [&](MCSymbol *Src, MCSymbol *Dst) { OutStreamer->emitSymbolAttribute(Src, MCSA_WeakAntiDep); OutStreamer->emitAssignment( - Src, MCSymbolRefExpr::create(Dst, MCSymbolRefExpr::VK_WEAKREF, + Src, MCSymbolRefExpr::create(Dst, MCSymbolRefExpr::VK_None, MMI->getContext())); }; diff --git a/llvm/test/CodeGen/AArch64/arm64ec-symbols.ll b/llvm/test/CodeGen/AArch64/arm64ec-symbols.ll index 389c36974beda2..b79dd7d61dd600 100644 --- a/llvm/test/CodeGen/AArch64/arm64ec-symbols.ll +++ b/llvm/test/CodeGen/AArch64/arm64ec-symbols.ll @@ -10,12 +10,12 @@ define void @caller() nounwind { } ; CHECK: .weak_anti_dep caller -; CHECK-NEXT: .set caller, "#caller"@WEAKREF +; CHECK-NEXT: .set caller, "#caller"{{$}} ; CHECK: .weak_anti_dep func -; CHECK-NEXT: .set func, "#func"@WEAKREF +; CHECK-NEXT: .set func, "#func"{{$}} ; CHECK-NEXT: .weak_anti_dep "#func" -; CHECK-NEXT: .set "#func", "#func$exit_thunk"@WEAKREF +; CHECK-NEXT: .set "#func", "#func$exit_thunk"{{$}} ; SYM: [ 8](sec 4)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000 #caller ; SYM: [21](sec 7)(fl 0x00)(ty 20)(scl 2) (nx 0) 0x00000000 #func$exit_thunk