mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Made index_addr index operand dynamic.
Instead of taking an integer constant index, index_addr now takes a value operand of builtin integer type, which makes more sense. Swift SVN r5478
This commit is contained in:
@@ -433,9 +433,11 @@ public:
|
||||
}
|
||||
|
||||
void checkIndexAddrInst(IndexAddrInst *IAI) {
|
||||
require(IAI->getType().isAddress() &&
|
||||
IAI->getType() == IAI->getOperand().getType(),
|
||||
"invalid IndexAddrInst");
|
||||
require(IAI->getType().isAddress(), "index_addr must produce an address");
|
||||
require(IAI->getType() == IAI->getBase().getType(),
|
||||
"index_addr must produce an address of the same type as its base");
|
||||
require(IAI->getIndex().getType().is<BuiltinIntegerType>(),
|
||||
"index_addr index must be of a builtin integer type");
|
||||
}
|
||||
|
||||
void checkTupleExtractInst(TupleExtractInst *EI) {
|
||||
|
||||
Reference in New Issue
Block a user