mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
More assertion cleanups. Thanks, Joe!
Swift SVN r15842
This commit is contained in:
@@ -654,11 +654,12 @@ protected:
|
||||
static SILFunction *initCloned(SILFunction *OrigF, StringRef NewName) {
|
||||
SILModule &M = OrigF->getModule();
|
||||
|
||||
assert((OrigF->isTransparent() || OrigF->isBare() || OrigF->getLocation())
|
||||
&& "SILFunction missing location");
|
||||
assert((OrigF->isTransparent() || OrigF->isBare() || OrigF->getDebugScope())
|
||||
&& "SILFunction missing DebugScope");
|
||||
// Create a new empty function.
|
||||
// TODO: Use getSpecializedLinkage() once we mangle properly.
|
||||
assert(OrigF->isTransparent() ||
|
||||
OrigF->isBare() ||
|
||||
OrigF->getLocation() && "SILFunction missing location");
|
||||
SILFunction *NewF =
|
||||
SILFunction::create(M, SILLinkage::Private,
|
||||
NewName,
|
||||
|
||||
Reference in New Issue
Block a user