From 787dcf94f3f24630957b5ecd2bf8c7fd924dcb65 Mon Sep 17 00:00:00 2001 From: xuechen417 Date: Thu, 7 Dec 2023 13:53:59 +0800 Subject: [PATCH] PatchBufferOp: fix the check condition for PerservedAnalyses `impl.run(functtion)` returns true means we should perseve nothing. --- lgc/patch/PatchBufferOp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lgc/patch/PatchBufferOp.cpp b/lgc/patch/PatchBufferOp.cpp index 58baf82805..4a9d3bab0a 100644 --- a/lgc/patch/PatchBufferOp.cpp +++ b/lgc/patch/PatchBufferOp.cpp @@ -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(); }