diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp index 03835bcae5f529..6e1da15d6b203c 100644 --- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp +++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp @@ -64,11 +64,9 @@ struct OMPInformationCache : public InformationCache { SmallPtrSetImpl &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.