mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
[FastISel][AArch64] Fix return type in FastLowerCall.
I used the wrong method to obtain the return type inside FinishCall. This fix simply uses the return type from FastLowerCall, which we already determined to be a valid type. Reduced test case from Chad. Thanks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213788 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
12
test/CodeGen/AArch64/fast-isel-call-return.ll
Normal file
12
test/CodeGen/AArch64/fast-isel-call-return.ll
Normal file
@@ -0,0 +1,12 @@
|
||||
; RUN: llc -fast-isel -fast-isel-abort < %s | FileCheck %s
|
||||
target datalayout = "e-m:e-i64:64-i128:128-n32:64-S128"
|
||||
target triple = "aarch64-linux-gnu"
|
||||
|
||||
define i8* @test_call_return_type(i64 %size) {
|
||||
entry:
|
||||
; CHECK: bl xmalloc
|
||||
%0 = call noalias i8* @xmalloc(i64 undef)
|
||||
ret i8* %0
|
||||
}
|
||||
|
||||
declare noalias i8* @xmalloc(i64)
|
||||
Reference in New Issue
Block a user