diff --git a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp index ad74fa276934..72ad0264b5bd 100644 --- a/polly/lib/CodeGen/ManagedMemoryRewrite.cpp +++ b/polly/lib/CodeGen/ManagedMemoryRewrite.cpp @@ -354,7 +354,7 @@ public: GPURuntime Runtime; ManagedMemoryRewritePass() : ModulePass(ID) {} - virtual bool runOnModule(Module &M) { + bool runOnModule(Module &M) override { const DataLayout &DL = M.getDataLayout(); Function *Malloc = M.getFunction("malloc"); diff --git a/polly/lib/CodeGen/PPCGCodeGeneration.cpp b/polly/lib/CodeGen/PPCGCodeGeneration.cpp index bd92c7e705c9..0b959002cee1 100644 --- a/polly/lib/CodeGen/PPCGCodeGeneration.cpp +++ b/polly/lib/CodeGen/PPCGCodeGeneration.cpp @@ -337,7 +337,7 @@ public: void initializeAfterRTH(); /// Finalize the generated scop. - virtual void finalize(); + void finalize() override; /// Track if the full build process was successful. /// @@ -408,9 +408,9 @@ private: /// - In-kernel memory copy statement /// /// @param UserStmt The ast node to generate code for. - virtual void createUser(__isl_take isl_ast_node *UserStmt); + void createUser(__isl_take isl_ast_node *UserStmt) override; - virtual void createFor(__isl_take isl_ast_node *Node); + void createFor(__isl_take isl_ast_node *Node) override; enum DataDirection { HOST_TO_DEVICE, DEVICE_TO_HOST };