From 61238d2690a6ebdf3c4f3f68f39101fac30263a7 Mon Sep 17 00:00:00 2001 From: sstefan1 Date: Thu, 2 Jul 2020 19:50:39 +0200 Subject: [PATCH] [OpenMPOpt][Fix] Remove double initialization of omp::types. --- llvm/lib/Transforms/IPO/OpenMPOpt.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp index 03835bc..6e1da15 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. -- 2.7.4