llvm-svn: 47615
This commit is contained in:
Gabor Greif 2008-02-26 19:13:21 +00:00
parent 85e38bfb2e
commit aa2617206f
1 changed files with 1 additions and 1 deletions

View File

@ -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