Skip to content

Commit f0bf9af

Browse files
committed
IRGen: Fix assert
We only need a contextPtr if the function type requires a context rdar://38241155 SR-7138
1 parent 74ba135 commit f0bf9af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/IRGen/GenCall.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ void CallEmission::setFromCallee() {
19201920

19211921
// Fill in the context pointer if necessary.
19221922
if (!contextPtr) {
1923-
assert(!CurCallee.getOrigFunctionType()->isNoEscape() &&
1923+
assert(!CurCallee.getOrigFunctionType()->getExtInfo().hasContext() &&
19241924
"Missing context?");
19251925
contextPtr = llvm::UndefValue::get(IGF.IGM.RefCountedPtrTy);
19261926
}

0 commit comments

Comments
 (0)