[llvm] 06f06de - [PowerPC] Fix a warning

Kazu Hirata via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 7 10:44:03 PDT 2025


Author: Kazu Hirata
Date: 2025-08-07T10:43:58-07:00
New Revision: 06f06deb774ada5aa37db89fa7b4a88b13163e0d

URL: https://github.com/llvm/llvm-project/commit/06f06deb774ada5aa37db89fa7b4a88b13163e0d
DIFF: https://github.com/llvm/llvm-project/commit/06f06deb774ada5aa37db89fa7b4a88b13163e0d.diff

LOG: [PowerPC] Fix a warning

This patch fixes:

  llvm/lib/Target/PowerPC/PPCSelectionDAGInfo.h:25:3: error:
  'EmitTargetCodeForMemcmp' overrides a member function but is not
  marked 'override' [-Werror,-Winconsistent-missing-override]

Added: 
    

Modified: 
    llvm/lib/Target/PowerPC/PPCSelectionDAGInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/PowerPC/PPCSelectionDAGInfo.h b/llvm/lib/Target/PowerPC/PPCSelectionDAGInfo.h
index 5635c6aea7e2e..1537851a1b610 100644
--- a/llvm/lib/Target/PowerPC/PPCSelectionDAGInfo.h
+++ b/llvm/lib/Target/PowerPC/PPCSelectionDAGInfo.h
@@ -24,7 +24,7 @@ class PPCSelectionDAGInfo : public SelectionDAGTargetInfo {
   std::pair<SDValue, SDValue>
   EmitTargetCodeForMemcmp(SelectionDAG &DAG, const SDLoc &dl, SDValue Chain,
                           SDValue Op1, SDValue Op2, SDValue Op3,
-                          const CallInst *CI) const;
+                          const CallInst *CI) const override;
 };
 
 } // namespace llvm


        


More information about the llvm-commits mailing list