Skip to content

Commit 62a46db

Browse files
authored
Fix bitcast-to-base pattern for library function argument (#3845)
1 parent 51d9501 commit 62a46db

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lib/Transforms/Scalar/ScalarReplAggregatesHLSL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5442,6 +5442,7 @@ static void LegalizeDxilInputOutputs(Function *F,
54425442
// Map from output to the temp created for it.
54435443
MapVector<Argument *, Value*> outputTempMap; // Need deterministic order of iteration
54445444
for (Argument &arg : F->args()) {
5445+
HLModule::MergeGepUse(&arg);
54455446
Type *Ty = arg.getType();
54465447

54475448
DxilParameterAnnotation &paramAnnotation = EntryAnnotation->GetParameterAnnotation(arg.getArgNo());

0 commit comments

Comments
 (0)