[PATCH] D85383: [flang] Fix compilation warning in check-directive-structure.h

Tim Keith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 5 18:03:57 PDT 2020


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6d2d73059fda: [flang] Fix compilation warning in check-directive-structure.h (authored by tskeith).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D85383/new/

https://reviews.llvm.org/D85383

Files:
  flang/lib/Semantics/check-directive-structure.h


Index: flang/lib/Semantics/check-directive-structure.h
===================================================================
--- flang/lib/Semantics/check-directive-structure.h
+++ flang/lib/Semantics/check-directive-structure.h
@@ -34,13 +34,13 @@
 // typename PC is the parser class defined in parse-tree.h for the clauses.
 template <typename D, typename C, typename PC, std::size_t ClauseEnumSize>
 class DirectiveStructureChecker : public virtual BaseChecker {
-public:
+protected:
   DirectiveStructureChecker(SemanticsContext &context,
       std::unordered_map<D, DirectiveClauses<C, ClauseEnumSize>>
           directiveClausesMap)
       : context_{context}, directiveClausesMap_(directiveClausesMap) {}
+  virtual ~DirectiveStructureChecker() {}
 
-protected:
   struct DirectiveContext {
     DirectiveContext(parser::CharBlock source, D d)
         : directiveSource{source}, directive{d} {}


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D85383.283462.patch
Type: text/x-patch
Size: 903 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200806/3e93eaea/attachment.bin>


More information about the llvm-commits mailing list