diff --git a/clang/lib/CodeGen/CGCUDARuntime.cpp b/clang/lib/CodeGen/CGCUDARuntime.cpp index 9cbdb641d00a1..9c831b26c3a7b 100644 --- a/clang/lib/CodeGen/CGCUDARuntime.cpp +++ b/clang/lib/CodeGen/CGCUDARuntime.cpp @@ -62,8 +62,8 @@ static llvm::Value *emitGetParamBuf(CodeGenFunction &CGF, RValue CGCUDARuntime::EmitCUDADeviceKernelCallExpr( CodeGenFunction &CGF, const CUDAKernelCallExpr *E, ReturnValueSlot ReturnValue, llvm::CallBase **CallOrInvoke) { - ASTContext &Ctx = CGM.getContext(); - assert(Ctx.getcudaLaunchDeviceDecl() == E->getConfig()->getDirectCallee()); + assert(CGM.getContext().getcudaLaunchDeviceDecl() == + E->getConfig()->getDirectCallee()); llvm::BasicBlock *ConfigOKBlock = CGF.createBasicBlock("dkcall.configok"); llvm::BasicBlock *ContBlock = CGF.createBasicBlock("dkcall.end");