[llvm] 61238d2 - [OpenMPOpt][Fix] Remove double initialization of omp::types.

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 2 10:53:44 PDT 2020


Author: sstefan1
Date: 2020-07-02T19:51:54+02:00
New Revision: 61238d2690a6ebdf3c4f3f68f39101fac30263a7

URL: https://github.com/llvm/llvm-project/commit/61238d2690a6ebdf3c4f3f68f39101fac30263a7
DIFF: https://github.com/llvm/llvm-project/commit/61238d2690a6ebdf3c4f3f68f39101fac30263a7.diff

LOG: [OpenMPOpt][Fix] Remove double initialization of omp::types.

Added: 
    

Modified: 
    llvm/lib/Transforms/IPO/OpenMPOpt.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
index 03835bcae5f5..6e1da15d6b20 100644
--- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp
@@ -64,11 +64,9 @@ struct OMPInformationCache : public InformationCache {
                       SmallPtrSetImpl<Function *> &ModuleSlice)
       : InformationCache(M, AG, Allocator, CGSCC), ModuleSlice(ModuleSlice),
         OMPBuilder(M) {
-    initializeTypes(M);
+    OMPBuilder.initialize();
     initializeRuntimeFunctions();
     initializeInternalControlVars();
-
-    OMPBuilder.initialize();
   }
 
   /// Generic information that describes an internal control variable.


        


More information about the llvm-commits mailing list