mirror of
https://github.com/intel/llvm.git
synced 2026-02-01 17:07:36 +08:00
Avoid dispose calls when only doing gc.
llvm-svn: 66126
This commit is contained in:
@@ -391,7 +391,7 @@ void CodeGenFunction::EmitLocalBlockVarDecl(const VarDecl &D) {
|
||||
EmitCall(CGM.getTypes().getFunctionInfo(FD), F, Args);
|
||||
}
|
||||
|
||||
if (needsDispose) {
|
||||
if (needsDispose && CGM.getLangOptions().getGCMode() != LangOptions::GCOnly) {
|
||||
CleanupScope scope(*this);
|
||||
BuildBlockRelease(D, DeclPtr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user