mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Add builtin_zero instruction.
To represent the zero value of builtin types. Swift SVN r4907
This commit is contained in:
@@ -335,6 +335,12 @@ public:
|
||||
"Tuple element arguments do not match tuple type!");
|
||||
}
|
||||
}
|
||||
|
||||
void checkBuiltinZeroInst(BuiltinZeroInst *ZI) {
|
||||
require(ZI->getType().is<BuiltinType>(),
|
||||
"builtin_zero result must be a builtin type");
|
||||
}
|
||||
|
||||
void checkMetatypeInst(MetatypeInst *MI) {
|
||||
require(MI->getType(0).is<MetaTypeType>(),
|
||||
"metatype instruction must be of metatype type");
|
||||
|
||||
Reference in New Issue
Block a user