diff --git a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp index 9790413ab8db23..eb2133d32b6b62 100644 --- a/llvm/lib/Transforms/IPO/OpenMPOpt.cpp +++ b/llvm/lib/Transforms/IPO/OpenMPOpt.cpp @@ -549,7 +549,6 @@ struct OMPInformationCache : public InformationCache { void recollectUses() { for (int Idx = 0; Idx < RFIs.size(); ++Idx) recollectUsesForFunction(static_cast(Idx)); - OMPBuilder.Config.IsTargetDevice = isOpenMPDevice(OMPBuilder.M); } // Helper function to inherit the calling convention of the function callee.