From: sstefan1 Date: Thu, 2 Jul 2020 17:50:39 +0000 (+0200) Subject: [OpenMPOpt][Fix] Remove double initialization of omp::types. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=61238d2690a6ebdf3c4f3f68f39101fac30263a7;p=platform%2Fupstream%2Fllvm.git [OpenMPOpt][Fix] Remove double initialization of omp::types. --- 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.