[llvm] bf25a48 - Add override for runOnFunction()
Ruiling Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 25 19:19:48 PDT 2022
Author: Ruiling Song
Date: 2022-09-26T10:19:35+08:00
New Revision: bf25a48985ac54e4c0727507435705dade84b3ee
URL: https://github.com/llvm/llvm-project/commit/bf25a48985ac54e4c0727507435705dade84b3ee
DIFF: https://github.com/llvm/llvm-project/commit/bf25a48985ac54e4c0727507435705dade84b3ee.diff
LOG: Add override for runOnFunction()
Fix build-bot failure.
Added:
Modified:
llvm/lib/Target/AMDGPU/AMDGPURewriteUndefForPHI.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/AMDGPURewriteUndefForPHI.cpp b/llvm/lib/Target/AMDGPU/AMDGPURewriteUndefForPHI.cpp
index 0f29516bc78c..ff34726fdf02 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPURewriteUndefForPHI.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPURewriteUndefForPHI.cpp
@@ -75,7 +75,7 @@ class AMDGPURewriteUndefForPHI : public FunctionPass {
AMDGPURewriteUndefForPHI() : FunctionPass(ID) {
initializeAMDGPURewriteUndefForPHIPass(*PassRegistry::getPassRegistry());
}
- bool runOnFunction(Function &F);
+ bool runOnFunction(Function &F) override;
StringRef getPassName() const override {
return "AMDGPU Rewrite Undef for PHI";
}
More information about the llvm-commits
mailing list