Skip to content

Commit 37bcc29

Browse files
committed
Delete braces around simple single-statement body of if statement
1 parent 54b1e87 commit 37bcc29

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -350,9 +350,8 @@ void clang::CodeGen::CGHLSLRuntime::setHLSLEntryAttributes(
350350
// later in the compiler-flow for such module functions is not aware of and
351351
// hence not able to set attributes of the newly materialized entry functions.
352352
// So, set attributes of entry function here, as appropriate.
353-
if (CGM.getCodeGenOpts().OptimizationLevel == 0) {
353+
if (CGM.getCodeGenOpts().OptimizationLevel == 0)
354354
Fn->addFnAttr(llvm::Attribute::OptimizeNone);
355-
}
356355
Fn->addFnAttr(llvm::Attribute::NoInline);
357356
}
358357

0 commit comments

Comments
 (0)