diff options
author | Jan Korous <jkorous@apple.com> | 2018-08-30 14:46:48 +0000 |
---|---|---|
committer | Jan Korous <jkorous@apple.com> | 2018-08-30 14:46:48 +0000 |
commit | ba3334a25f8a885d2f4d91fe1374ecd6a0ea83b2 (patch) | |
tree | 67c0919e25a559fa0cdedee4100448315a4c97e2 | |
parent | 80a9a61ded32df6c7555f13fd7221e92f4d3c6a5 (diff) | |
download | bcm5719-llvm-ba3334a25f8a885d2f4d91fe1374ecd6a0ea83b2.tar.gz bcm5719-llvm-ba3334a25f8a885d2f4d91fe1374ecd6a0ea83b2.zip |
[Sema][NFC] Trivial cleanup in ActOnCallExpr
Use logical or operator instead of a bool variable and if/else.
Differential Revision: https://reviews.llvm.org/D51485
llvm-svn: 341074
-rw-r--r-- | clang/lib/Sema/SemaExpr.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp index 4a5196dc546..0431302a4e5 100644 --- a/clang/lib/Sema/SemaExpr.cpp +++ b/clang/lib/Sema/SemaExpr.cpp @@ -5330,13 +5330,7 @@ ExprResult Sema::ActOnCallExpr(Scope *Scope, Expr *Fn, SourceLocation LParenLoc, // Determine whether this is a dependent call inside a C++ template, // in which case we won't do any semantic analysis now. - bool Dependent = false; - if (Fn->isTypeDependent()) - Dependent = true; - else if (Expr::hasAnyTypeDependentArguments(ArgExprs)) - Dependent = true; - - if (Dependent) { + if (Fn->isTypeDependent() || Expr::hasAnyTypeDependentArguments(ArgExprs)) { if (ExecConfig) { return new (Context) CUDAKernelCallExpr( Context, Fn, cast<CallExpr>(ExecConfig), ArgExprs, |