From: Alexey Bataev Date: Wed, 11 Oct 2017 15:56:38 +0000 (+0000) Subject: [OPENMP] Remove extra if, NFC. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5126623c20af39a5a8784cd8b12347b61a8e8f17;p=clang [OPENMP] Remove extra if, NFC. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315467 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGOpenMPRuntime.cpp b/lib/CodeGen/CGOpenMPRuntime.cpp index 8052b9d0c8..85ae6cb69f 100644 --- a/lib/CodeGen/CGOpenMPRuntime.cpp +++ b/lib/CodeGen/CGOpenMPRuntime.cpp @@ -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()) {