Skip to content

Commit

Permalink
PatchBufferOp: fix the check condition for PerservedAnalyses
Browse files Browse the repository at this point in the history
`impl.run(functtion)` returns true means we should perseve nothing.
  • Loading branch information
xuechen417 authored and amdrexu committed Dec 9, 2023
1 parent fd11332 commit daf27f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgc/patch/PatchBufferOp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ PreservedAnalyses PatchBufferOp::run(Function &function, FunctionAnalysisManager
#endif

PatchBufferOpImpl impl(function.getContext(), *pipelineState, uniformityInfo);
if (!impl.run(function))
if (impl.run(function))
return PreservedAnalyses::none();
return PreservedAnalyses::all();
}
Expand Down

0 comments on commit daf27f7

Please sign in to comment.