[OPENMP] Remove extra if, NFC.

llvm-svn: 315467
This commit is contained in:
Alexey Bataev 2017-10-11 15:56:38 +00:00
parent 8f174dde92
commit 3a03a7f636
1 changed files with 1 additions and 1 deletions

View File

@ -4274,7 +4274,7 @@ CGOpenMPRuntime::emitTaskInit(CodeGenFunction &CGF, SourceLocation Loc,
CGM, D.getDirectiveKind(), KmpInt32Ty, KmpRoutineEntryPtrQTy));
}
KmpTaskTQTy = SavedKmpTaskloopTQTy;
} else if (D.getDirectiveKind() == OMPD_task) {
} else {
assert(D.getDirectiveKind() == OMPD_task &&
"Expected taskloop or task directive");
if (SavedKmpTaskTQTy.isNull()) {