From: Sven van Haastregt Date: Wed, 29 Mar 2017 15:25:06 +0000 (+0000) Subject: [MachineVerifier] Drop a spurious const X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc54be812c0a18f537f45c4c482952d45f19a953;p=llvm [MachineVerifier] Drop a spurious const As of r298987 the argument is a value that we std::move, so it shouldn't be const anymore. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298999 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineVerifier.cpp b/lib/CodeGen/MachineVerifier.cpp index 5c263b3021f..fc4026174ca 100644 --- a/lib/CodeGen/MachineVerifier.cpp +++ b/lib/CodeGen/MachineVerifier.cpp @@ -260,7 +260,7 @@ namespace { static char ID; // Pass ID, replacement for typeid const std::string Banner; - MachineVerifierPass(const std::string banner = std::string()) + MachineVerifierPass(std::string banner = std::string()) : MachineFunctionPass(ID), Banner(std::move(banner)) { initializeMachineVerifierPassPass(*PassRegistry::getPassRegistry()); }