Skip to content

Commit 0356d0c

Browse files
authored
Print more descriptive error message when trying to link a global with appending linkage (#69613)
This is a proper fix for #40308
1 parent 956b47b commit 0356d0c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2927,7 +2927,7 @@ bool AsmPrinter::emitSpecialLLVMGlobal(const GlobalVariable *GV) {
29272927
return true;
29282928
}
29292929

2930-
report_fatal_error("unknown special variable");
2930+
report_fatal_error("unknown special variable with appending linkage");
29312931
}
29322932

29332933
/// EmitLLVMUsedList - For targets that define a MAI::UsedDirective, mark each
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
; RUN: not --crash llc < %s -mtriple=i686-- 2>&1 | FileCheck %s
22

3-
; CHECK: unknown special variable
3+
; CHECK: unknown special variable with appending linkage
44
@foo = appending constant [1 x i32 ]zeroinitializer

0 commit comments

Comments
 (0)