[OpenMPOpt][Fix] Remove double initialization of omp::types.
authorsstefan1 <sstipanovic@s-energize.com>
Thu, 2 Jul 2020 17:50:39 +0000 (19:50 +0200)
committersstefan1 <sstipanovic@s-energize.com>
Thu, 2 Jul 2020 17:51:54 +0000 (19:51 +0200)
llvm/lib/Transforms/IPO/OpenMPOpt.cpp

index 03835bc..6e1da15 100644 (file)
@@ -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.