mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
e3bfefd3cc
This reverts commit eb9f7c28e5fe6d75fed3587023e17f2997c8024b. Previously this was incorrectly handling linking of the contained type, so this merges the fixes from D88973.
14 lines
677 B
LLVM
14 lines
677 B
LLVM
; RUN: not llvm-as < %s -o /dev/null 2>&1 | FileCheck %s
|
|
|
|
; CHECK: Wrong types for attribute: inalloca nest noalias nocapture nonnull readnone readonly byref(i32) byval(i32) preallocated(i32) sret(i32) align 1 dereferenceable(1) dereferenceable_or_null(1)
|
|
; CHECK-NEXT: @align_non_pointer1
|
|
define void @align_non_pointer1(i32 align 4 %a) {
|
|
ret void
|
|
}
|
|
|
|
; CHECK: Wrong types for attribute: inalloca nest noalias nocapture noundef nonnull readnone readonly signext zeroext byref(void) byval(void) preallocated(void) sret(void) align 1 dereferenceable(1) dereferenceable_or_null(1)
|
|
; CHECK-NEXT: @align_non_pointer2
|
|
define align 4 void @align_non_pointer2(i32 %a) {
|
|
ret void
|
|
}
|