mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47615 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8989657a7
commit
53bdbd7565
@ -991,7 +991,7 @@ bool CodeGenPrepare::OptimizeExtUses(Instruction *I) {
|
||||
return false;
|
||||
|
||||
// Only do this xform if truncating is free.
|
||||
if (!TLI->isTruncateFree(I->getType(), Src->getType()))
|
||||
if (TLI && !TLI->isTruncateFree(I->getType(), Src->getType()))
|
||||
return false;
|
||||
|
||||
// Only safe to perform the optimization if the source is also defined in
|
||||
|
Loading…
Reference in New Issue
Block a user