add a SILType::isTrivial helper function.

Swift SVN r10610
This commit is contained in:
Chris Lattner
2013-11-20 22:53:49 +00:00
parent 5ad19d55b9
commit 07ce5306f3
5 changed files with 24 additions and 22 deletions

View File

@@ -108,7 +108,7 @@ static bool isReturnedOwned(IRGenModule &IGM, SILResultInfo result) {
case ResultConvention::Owned: return true;
case ResultConvention::Autoreleased: return false;
case ResultConvention::Unowned:
return IGM.SILMod->getTypeLowering(result.getSILType()).isTrivial();
return result.getSILType().isTrivial(*IGM.SILMod);
}
llvm_unreachable("bad result convention");
}