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(); }