mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
add a SILType::isTrivial helper function.
Swift SVN r10610
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user