[flang-commits] [flang] 4121172 - [flang][openmp] libc++ unordered_map build fix in flang openmp static analysis

David Truby via flang-commits flang-commits at lists.llvm.org
Mon Jul 13 08:08:39 PDT 2020


Author: David Truby
Date: 2020-07-13T16:08:24+01:00
New Revision: 4121172239779ea509908a2a57278a3d2206ad92

URL: https://github.com/llvm/llvm-project/commit/4121172239779ea509908a2a57278a3d2206ad92
DIFF: https://github.com/llvm/llvm-project/commit/4121172239779ea509908a2a57278a3d2206ad92.diff

LOG: [flang][openmp] libc++ unordered_map build fix in flang openmp static analysis

Simply move the include of unordered_map from the .cpp file to the .h file

Added: 
    

Modified: 
    flang/lib/Semantics/check-omp-structure.cpp
    flang/lib/Semantics/check-omp-structure.h

Removed: 
    


################################################################################
diff  --git a/flang/lib/Semantics/check-omp-structure.cpp b/flang/lib/Semantics/check-omp-structure.cpp
index a5f65bcbc804..d857d36ed05d 100644
--- a/flang/lib/Semantics/check-omp-structure.cpp
+++ b/flang/lib/Semantics/check-omp-structure.cpp
@@ -9,7 +9,6 @@
 #include "check-omp-structure.h"
 #include "flang/Parser/parse-tree.h"
 #include "flang/Semantics/tools.h"
-#include <unordered_map>
 
 namespace Fortran::semantics {
 

diff  --git a/flang/lib/Semantics/check-omp-structure.h b/flang/lib/Semantics/check-omp-structure.h
index eff0eb4aa76b..7fe78a792f19 100644
--- a/flang/lib/Semantics/check-omp-structure.h
+++ b/flang/lib/Semantics/check-omp-structure.h
@@ -19,6 +19,8 @@
 #include "flang/Semantics/semantics.h"
 #include "llvm/Frontend/OpenMP/OMPConstants.h"
 
+#include <unordered_map>
+
 using OmpDirectiveSet = Fortran::common::EnumSet<llvm::omp::Directive,
     llvm::omp::Directive_enumSize>;
 


        


More information about the flang-commits mailing list