Skip to content

Commit 255924c

Browse files
committed
Print more descriptive error message when trying to link a global with appending linkage
1 parent a1dc813 commit 255924c

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
@@ -2910,7 +2910,7 @@ bool AsmPrinter::emitSpecialLLVMGlobal(const GlobalVariable *GV) {
29102910
return true;
29112911
}
29122912

2913-
report_fatal_error("unknown special variable");
2913+
report_fatal_error("unknown special variable with appending linkage");
29142914
}
29152915

29162916
/// 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)