[llvm] ac44122 - [AMDGPUCtorDtorLowering] Fix returned PreservedAnalyses
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 16 09:36:26 PDT 2023
Author: Arthur Eubanks
Date: 2023-03-16T09:36:17-07:00
New Revision: ac44122513c4b7b24fbf5d19a7962ddd58e2eb02
URL: https://github.com/llvm/llvm-project/commit/ac44122513c4b7b24fbf5d19a7962ddd58e2eb02
DIFF: https://github.com/llvm/llvm-project/commit/ac44122513c4b7b24fbf5d19a7962ddd58e2eb02.diff
LOG: [AMDGPUCtorDtorLowering] Fix returned PreservedAnalyses
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp b/llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
index ba5a8799792a..39736aed9969 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUCtorDtorLowering.cpp
@@ -92,8 +92,8 @@ class AMDGPUCtorDtorLoweringLegacy final : public ModulePass {
PreservedAnalyses AMDGPUCtorDtorLoweringPass::run(Module &M,
ModuleAnalysisManager &AM) {
- lowerCtorsAndDtors(M);
- return PreservedAnalyses::all();
+ return lowerCtorsAndDtors(M) ? PreservedAnalyses::none()
+ : PreservedAnalyses::all();
}
char AMDGPUCtorDtorLoweringLegacy::ID = 0;
More information about the llvm-commits
mailing list