mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Remove 'ModuleInst'.
Module values could never be used for anything, and we have SILUndef now, so when SILGen sees a ModuleExpr, we can just emit 'undef'. Swift SVN r10548
This commit is contained in:
@@ -586,10 +586,6 @@ public:
|
||||
CanType(MI->getType().castTo<MetaTypeType>()->getInstanceType()),
|
||||
"protocol_metatype result must be metatype of operand type");
|
||||
}
|
||||
void checkModuleInst(ModuleInst *MI) {
|
||||
require(MI->getType(0).is<ModuleType>(),
|
||||
"module instruction must be of module type");
|
||||
}
|
||||
|
||||
void checkStrongRetainInst(StrongRetainInst *RI) {
|
||||
requireReferenceValue(RI->getOperand(), "Operand of strong_retain");
|
||||
|
||||
Reference in New Issue
Block a user