|
@@ -112,9 +112,8 @@ CodeGenFunction::~CodeGenFunction() {
|
|
if (FirstBlockInfo)
|
|
if (FirstBlockInfo)
|
|
destroyBlockInfos(FirstBlockInfo);
|
|
destroyBlockInfos(FirstBlockInfo);
|
|
|
|
|
|
- if (getLangOpts().OpenMP) {
|
|
|
|
|
|
+ if (getLangOpts().OpenMP && CurFn)
|
|
CGM.getOpenMPRuntime().functionFinished(*this);
|
|
CGM.getOpenMPRuntime().functionFinished(*this);
|
|
- }
|
|
|
|
}
|
|
}
|
|
|
|
|
|
CharUnits CodeGenFunction::getNaturalPointeeTypeAlignment(QualType T,
|
|
CharUnits CodeGenFunction::getNaturalPointeeTypeAlignment(QualType T,
|