mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
Implement feature: InstCombine/2003-11-13-ConstExprCastCall.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9981 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
623f707bee
commit
917e804253
@ -1801,7 +1801,8 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
|
||||
const Type *OldRetTy = Caller->getType();
|
||||
|
||||
if (Callee->isExternal() &&
|
||||
!OldRetTy->isLosslesslyConvertibleTo(FT->getReturnType()))
|
||||
!OldRetTy->isLosslesslyConvertibleTo(FT->getReturnType()) &&
|
||||
!Caller->use_empty())
|
||||
return false; // Cannot transform this return value...
|
||||
|
||||
unsigned NumActualArgs = unsigned(CS.arg_end()-CS.arg_begin());
|
||||
|
Loading…
Reference in New Issue
Block a user