mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
Fix typo that changed the logic to something wrong.
Spotted by Nick Lewycky. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@52411 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69b01e92a2
commit
34b176a181
@ -8783,7 +8783,7 @@ bool InstCombiner::transformConstExprCastCall(CallSite CS) {
|
||||
// Conversion is ok if changing from one pointer type to another or from
|
||||
// a pointer to an integer of the same size.
|
||||
!((isa<PointerType>(OldRetTy) || OldRetTy == TD->getIntPtrType()) &&
|
||||
isa<PointerType>(NewRetTy) || NewRetTy == TD->getIntPtrType()))
|
||||
(isa<PointerType>(NewRetTy) || NewRetTy == TD->getIntPtrType())))
|
||||
return false; // Cannot transform this return value.
|
||||
|
||||
if (!Caller->use_empty() &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user