mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-04 17:58:22 +00:00
e7e3f2e5cd
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17528 91177308-0d34-0410-b5e6-96231b3b80d8
29 lines
732 B
LLVM
29 lines
732 B
LLVM
; RUN: llvm-as < %s -o /dev/null -f
|
|
|
|
; This testcase used to fail due to a lack of this diff in Value.cpp:
|
|
; diff -r1.16 Value.cpp
|
|
; 11c11
|
|
; < #include "llvm/Type.h"
|
|
; ---
|
|
; > #include "llvm/DerivedTypes.h"
|
|
; 74c74,76
|
|
; < assert(Ty.get() == (const Type*)OldTy &&"Can't refine anything but my type!");
|
|
; ---
|
|
; > assert(Ty.get() == OldTy &&"Can't refine anything but my type!");
|
|
; > if (OldTy == NewTy && !OldTy->isAbstract())
|
|
; > Ty.removeUserFromConcrete();
|
|
;
|
|
; This was causing an assertion failure, due to the "foo" Method object never releasing
|
|
; it's reference to the opaque %bb value.
|
|
;
|
|
declare void "foo"(%bb)
|
|
|
|
%exception_descriptor = type opaque
|
|
|
|
%bb = type int
|
|
|
|
%exception_descriptor = type int
|
|
|
|
implementation
|
|
|