Skip to content

Commit

Permalink
PatchBufferOp: fix a logic error
Browse files Browse the repository at this point in the history
If `impl.run()` returns true, it should no perserve.
  • Loading branch information
xuechen417 committed Dec 7, 2023
1 parent 86f4a75 commit 523f4b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
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 523f4b5

Please sign in to comment.