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 5791160 commit 155e511Copy full SHA for 155e511
clang/lib/CodeGen/CGCall.cpp
@@ -2853,8 +2853,8 @@ void CodeGenModule::ConstructAttributeList(StringRef Name,
2853
Attrs.addAttribute(llvm::Attribute::InReg);
2854
2855
// HLSL out and inout parameters must not be marked with ByVal or
2856
- // DeadOnReturn attributes, as they would be eliminated by Dead Store
2857
- // Elimination.
+ // DeadOnReturn attributes because stores to these parameters are visible
+ // to the caller.
2858
if (auto ParamABI = FI.getExtParameterInfo(ArgNo).getABI();
2859
ParamABI != ParameterABI::HLSLOut &&
2860
ParamABI != ParameterABI::HLSLInOut) {
0 commit comments