forked from OSchip/llvm-project
parent
01cf09302d
commit
13586ab6d8
|
@ -3795,20 +3795,19 @@ Sema::BuildResolvedCallExpr(Expr *Fn, NamedDecl *NDecl,
|
|||
// Make the call expr early, before semantic checks. This guarantees cleanup
|
||||
// of arguments and function on error.
|
||||
CallExpr *TheCall;
|
||||
if (Config) {
|
||||
if (Config)
|
||||
TheCall = new (Context) CUDAKernelCallExpr(Context, Fn,
|
||||
cast<CallExpr>(Config),
|
||||
Args, NumArgs,
|
||||
Context.BoolTy,
|
||||
VK_RValue,
|
||||
RParenLoc);
|
||||
} else {
|
||||
else
|
||||
TheCall = new (Context) CallExpr(Context, Fn,
|
||||
Args, NumArgs,
|
||||
Context.BoolTy,
|
||||
VK_RValue,
|
||||
RParenLoc);
|
||||
}
|
||||
|
||||
unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0);
|
||||
|
||||
|
|
Loading…
Reference in New Issue