forked from OSchip/llvm-project
[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
This commit is contained in:
parent
80a9a61ded
commit
ba3334a25f
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue