summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorAlexey Bataev <a.bataev@hotmail.com>2017-10-11 15:56:38 +0000
committerAlexey Bataev <a.bataev@hotmail.com>2017-10-11 15:56:38 +0000
commit3a03a7f6365ae85644ed61a6c6d45bdb8da77305 (patch)
tree0a384644847aee338b240693ce0ae46056f31d8a /clang/lib/CodeGen
parent8f174dde92540a2cfedef73a489d4f3296ca22fd (diff)
downloadbcm5719-llvm-3a03a7f6365ae85644ed61a6c6d45bdb8da77305.tar.gz
bcm5719-llvm-3a03a7f6365ae85644ed61a6c6d45bdb8da77305.zip
[OPENMP] Remove extra if, NFC.
llvm-svn: 315467
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGOpenMPRuntime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGOpenMPRuntime.cpp b/clang/lib/CodeGen/CGOpenMPRuntime.cpp
index 8052b9d0c87..85ae6cb69fb 100644
--- a/clang/lib/CodeGen/CGOpenMPRuntime.cpp
+++ b/clang/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()) {
OpenPOWER on IntegriCloud