
The current error message doesn't give sufficient details to help with debugging. This patch will log the operand values that are conflicting. After this patch the output is of the form: ``` 'Large Data Threshold': IDs have conflicting values: 'i32 101' from /usr/local/home/llvm-project/build/test/LTO/X86/Output/largedatathreshold-3.ll.tmp1.o, and 'i32 100' from ld-temp.o ```
10 lines
311 B
LLVM
10 lines
311 B
LLVM
; RUN: not llvm-link %s %p/module-flags-6-b.ll -S -o - 2>&1 | FileCheck %s
|
|
|
|
; Test module flags error messages.
|
|
|
|
; CHECK: linking module flags 'foo': IDs have conflicting values: 'i32 38' from {{.*}}module-flags-6-b.ll, and 'i32 37' from llvm-link
|
|
|
|
!0 = !{ i32 1, !"foo", i32 37 }
|
|
|
|
!llvm.module.flags = !{ !0 }
|