We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54b1e87 commit 37bcc29Copy full SHA for 37bcc29
clang/lib/CodeGen/CGHLSLRuntime.cpp
@@ -350,9 +350,8 @@ void clang::CodeGen::CGHLSLRuntime::setHLSLEntryAttributes(
350
// later in the compiler-flow for such module functions is not aware of and
351
// hence not able to set attributes of the newly materialized entry functions.
352
// So, set attributes of entry function here, as appropriate.
353
- if (CGM.getCodeGenOpts().OptimizationLevel == 0) {
+ if (CGM.getCodeGenOpts().OptimizationLevel == 0)
354
Fn->addFnAttr(llvm::Attribute::OptimizeNone);
355
- }
356
Fn->addFnAttr(llvm::Attribute::NoInline);
357
}
358
0 commit comments