mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 00:11:00 +00:00
4a24792a47
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1843 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
400 B
LLVM
16 lines
400 B
LLVM
; Fixed a problem where level raise would try to forward substitute a cast of a
|
|
; method pointer type into a call. In doing so, it would have to change the
|
|
; types of the arguments to the call, but broke doing so.
|
|
;
|
|
; RUN: as < %s | opt -raise
|
|
|
|
implementation
|
|
|
|
|
|
void "test"(void (int*) *%Fn, long* %Arg)
|
|
begin
|
|
%Fn2 = cast void (int*) *%Fn to void(long*) *
|
|
call void %Fn2(long *%Arg)
|
|
ret void
|
|
end
|