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 7cdea51 commit 6a7460cCopy full SHA for 6a7460c
llvm/lib/Target/DirectX/DXILOpLowering.cpp
@@ -135,10 +135,12 @@ class OpLowerer {
135
for (Use &U : make_early_inc_range(Intrin->uses()))
136
if (auto *EVI = dyn_cast<ExtractValueInst>(U.getUser()))
137
EVI->setOperand(0, DXILOp);
138
+ else if (auto *IVI = dyn_cast<InsertValueInst>(U.getUser()))
139
+ IVI->setOperand(0, DXILOp);
140
else
- return make_error<StringError>(
- "DXIL ops that return structs may only be used by extractvalue",
141
- inconvertibleErrorCode());
+ return make_error<StringError>("DXIL ops that return structs may only "
142
+ "be used by insert- and extractvalue",
143
+ inconvertibleErrorCode());
144
return Error::success();
145
}
146
0 commit comments