mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Rename SILGlobalAddr to GlobalAddr.
All globals are SIL globals now. Swift SVN r22827
This commit is contained in:
@@ -610,12 +610,12 @@ public:
|
||||
verifySILFunctionType(fnType);
|
||||
}
|
||||
|
||||
void checkSILGlobalAddrInst(SILGlobalAddrInst *GAI) {
|
||||
void checkGlobalAddrInst(GlobalAddrInst *GAI) {
|
||||
require(GAI->getType().isAddress(),
|
||||
"SILGlobalAddr must have an address result type");
|
||||
"GlobalAddr must have an address result type");
|
||||
require(GAI->getType().getObjectType() ==
|
||||
GAI->getReferencedGlobal()->getLoweredType(),
|
||||
"SILGlobalAddr must be the address type of the variable it "
|
||||
"GlobalAddr must be the address type of the variable it "
|
||||
"references");
|
||||
if (F.isFragile()) {
|
||||
SILGlobalVariable *RefG = GAI->getReferencedGlobal();
|
||||
|
||||
Reference in New Issue
Block a user