llvm-6502/test/Assembler/2002-01-24-ValueRefineAbsType.ll
Dan Gohman fea1dd0804 Remove obsolete -f flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@79992 91177308-0d34-0410-b5e6-96231b3b80d8
2009-08-25 15:38:29 +00:00

24 lines
671 B
LLVM

; RUN: llvm-as %s -o /dev/null
; 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.
;
%bb = type i32
%exception_descriptor = type i32
declare void @foo(i32)