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 committed Dec 7, 2023
1 parent 86f4a75 commit 787dcf9
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 787dcf9

Please sign in to comment.