]> granicus.if.org Git - clang/commitdiff
[OPENMP] Remove extra if, NFC.
authorAlexey Bataev <a.bataev@hotmail.com>
Wed, 11 Oct 2017 15:56:38 +0000 (15:56 +0000)
committerAlexey Bataev <a.bataev@hotmail.com>
Wed, 11 Oct 2017 15:56:38 +0000 (15:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@315467 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGOpenMPRuntime.cpp

index 8052b9d0c87e56b546d21652e01a1727b3fa3bb2..85ae6cb69fb337a2ef0c77260a2ae991127b2b8e 100644 (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()) {