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
|
// Make the call expr early, before semantic checks. This guarantees cleanup
|
||||||
// of arguments and function on error.
|
// of arguments and function on error.
|
||||||
CallExpr *TheCall;
|
CallExpr *TheCall;
|
||||||
if (Config) {
|
if (Config)
|
||||||
TheCall = new (Context) CUDAKernelCallExpr(Context, Fn,
|
TheCall = new (Context) CUDAKernelCallExpr(Context, Fn,
|
||||||
cast<CallExpr>(Config),
|
cast<CallExpr>(Config),
|
||||||
Args, NumArgs,
|
Args, NumArgs,
|
||||||
Context.BoolTy,
|
Context.BoolTy,
|
||||||
VK_RValue,
|
VK_RValue,
|
||||||
RParenLoc);
|
RParenLoc);
|
||||||
} else {
|
else
|
||||||
TheCall = new (Context) CallExpr(Context, Fn,
|
TheCall = new (Context) CallExpr(Context, Fn,
|
||||||
Args, NumArgs,
|
Args, NumArgs,
|
||||||
Context.BoolTy,
|
Context.BoolTy,
|
||||||
VK_RValue,
|
VK_RValue,
|
||||||
RParenLoc);
|
RParenLoc);
|
||||||
}
|
|
||||||
|
|
||||||
unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0);
|
unsigned BuiltinID = (FDecl ? FDecl->getBuiltinID() : 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue