mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 18:54:02 +01:00
1dba3cd973
Instead of crashing, give a nice error. As a drive-by, fix the location associated with the errors for unresolved metadata (the location was off by one token). llvm-svn: 265507
12 lines
285 B
LLVM
12 lines
285 B
LLVM
; RUN: not llvm-as < %s 2>&1 | FileCheck %s
|
|
; Check that !tbaa upgrade doesn't crash on undefined metadata (it should give
|
|
; an error).
|
|
|
|
define void @foo() {
|
|
entry:
|
|
store i8 undef, i8* undef,
|
|
; CHECK: :[[@LINE+1]]:10: error: use of undefined metadata '!1'
|
|
!tbaa !1
|
|
unreachable
|
|
}
|