mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SILDebugScope: Add accessors for the parent SIL functions and use them in
assertions. (NFC)
This commit is contained in:
@@ -507,8 +507,8 @@ PromotedParamCloner::PromotedParamCloner(SILFunction *Orig,
|
||||
PromotedParamIndices,
|
||||
ClonedName)),
|
||||
Orig(Orig), PromotedParamIndices(PromotedParamIndices) {
|
||||
assert(Orig->getDebugScope()->getFunction() !=
|
||||
getCloned()->getDebugScope()->getFunction());
|
||||
assert(Orig->getDebugScope()->getParentFunction() !=
|
||||
getCloned()->getDebugScope()->getParentFunction());
|
||||
}
|
||||
|
||||
static std::string getClonedName(SILFunction *F,
|
||||
|
||||
Reference in New Issue
Block a user