Avoid adding some decls to DeferredDeclsToEmit.
Before this patch GetOrCreateLLVMFunction would add a decl to DeferredDeclsToEmit even when it was being called by the function trying to emit that decl. llvm-svn: 196753
This commit is contained in:
@@ -54,7 +54,8 @@ llvm::Constant *CodeGenModule::GetAddrOfThunk(GlobalDecl GD,
|
||||
Out.flush();
|
||||
|
||||
llvm::Type *Ty = getTypes().GetFunctionTypeForVTable(GD);
|
||||
return GetOrCreateLLVMFunction(Name, Ty, GD, /*ForVTable=*/true);
|
||||
return GetOrCreateLLVMFunction(Name, Ty, GD, /*ForVTable=*/true,
|
||||
/*DontDefer*/ true);
|
||||
}
|
||||
|
||||
static void setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD,
|
||||
|
||||
Reference in New Issue
Block a user