mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
We would set the body of a struct type (therefore making it non-opaque) but were forgetting to move it to the non-opaque set. Fixes pr22807. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231442 91177308-0d34-0410-b5e6-96231b3b80d8
14 lines
330 B
LLVM
14 lines
330 B
LLVM
; RUN: llvm-link -S -o - %p/pr22807.ll %p/Inputs/pr22807-1.ll %p/Inputs/pr22807-2.ll | FileCheck %s
|
|
|
|
; CHECK-NOT: type
|
|
; CHECK: %struct.B = type { %struct.A* }
|
|
; CHECK-NEXT: %struct.A = type { %struct.B* }
|
|
; CHECK-NOT: type
|
|
|
|
%struct.B = type { %struct.A* }
|
|
%struct.A = type opaque
|
|
|
|
define i32 @baz(%struct.B* %BB) {
|
|
ret i32 0
|
|
}
|