2009-08-25 15:38:29 +00:00
|
|
|
; RUN: llvm-as %s -o /dev/null
|
2004-11-06 22:07:09 +00:00
|
|
|
|
2002-01-25 03:44:58 +00:00
|
|
|
; 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();
|
|
|
|
;
|
2008-02-14 07:57:12 +00:00
|
|
|
; This was causing an assertion failure, due to the "foo" Method object never
|
2006-12-02 20:34:08 +00:00
|
|
|
; releasing it's reference to the opaque %bb value.
|
2002-01-25 03:44:58 +00:00
|
|
|
;
|
2008-02-14 07:57:12 +00:00
|
|
|
|
|
|
|
%bb = type i32
|
|
|
|
%exception_descriptor = type i32
|
2002-01-25 03:44:58 +00:00
|
|
|
|
2008-02-14 07:57:12 +00:00
|
|
|
declare void @foo(i32)
|