diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/LTO/LTOModule.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/ProfileData/ProfileSummary.cpp | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/LTO/LTOModule.cpp b/llvm/lib/LTO/LTOModule.cpp index 9e49f0dc007..68a78a95f73 100644 --- a/llvm/lib/LTO/LTOModule.cpp +++ b/llvm/lib/LTO/LTOModule.cpp @@ -151,7 +151,7 @@ LTOModule::createInLocalContext(std::unique_ptr<LLVMContext> Context, makeLTOModule(Buffer, options, *Context, /* ShouldBeLazy */ true); if (Ret) (*Ret)->OwnedContext = std::move(Context); - return std::move(Ret); + return Ret; } static ErrorOr<std::unique_ptr<Module>> diff --git a/llvm/lib/ProfileData/ProfileSummary.cpp b/llvm/lib/ProfileData/ProfileSummary.cpp index 3384c54ed57..82546eb47d4 100644 --- a/llvm/lib/ProfileData/ProfileSummary.cpp +++ b/llvm/lib/ProfileData/ProfileSummary.cpp @@ -23,8 +23,6 @@ using namespace llvm; -ProfileSummary::~ProfileSummary() {} - // A set of cutoff values. Each value, when divided by ProfileSummary::Scale // (which is 1000000) is a desired percentile of total counts. const std::vector<uint32_t> ProfileSummary::DefaultCutoffs( |