Skip to content

Commit c9e6676

Browse files
author
Georgi Mirazchiyski
committed
Follow the no parens coding standard for one-liner if-statements
1 parent a188a0b commit c9e6676

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/Driver/ToolChains/Cuda.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -944,9 +944,8 @@ void CudaToolChain::addClangTargetOptions(
944944
toolchains::SYCLToolChain::AddSYCLIncludeArgs(getDriver(), DriverArgs,
945945
CC1Args);
946946

947-
if (DriverArgs.hasArg(options::OPT_fsycl_fp32_prec_sqrt)) {
947+
if (DriverArgs.hasArg(options::OPT_fsycl_fp32_prec_sqrt))
948948
CC1Args.push_back("-fcuda-prec-sqrt");
949-
}
950949
} else {
951950
CC1Args.append(
952951
{"-fcuda-is-device", "-mllvm", "-enable-memcpyopt-without-libcalls"});

0 commit comments

Comments
 (0)