Skip to content

Commit 4546489

Browse files
committed
Print more descriptive error message when trying to link a global with appending linkage
1 parent 9308d66 commit 4546489

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
@@ -2929,7 +2929,7 @@ bool AsmPrinter::emitSpecialLLVMGlobal(const GlobalVariable *GV) {
29292929
return true;
29302930
}
29312931

2932-
report_fatal_error("unknown special variable");
2932+
report_fatal_error("unknown special variable with appending linkage");
29332933
}
29342934

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