1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Check in testcase and fix

llvm-svn: 1581
This commit is contained in:
Chris Lattner 2002-01-25 03:44:58 +00:00
parent 6c2d73fc51
commit 84b2d6c3c9

View File

@ -0,0 +1,24 @@
; 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
implementation