[llvm] r298999 - [MachineVerifier] Drop a spurious const
Sven van Haastregt via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 29 08:25:06 PDT 2017
Author: svenvh
Date: Wed Mar 29 10:25:06 2017
New Revision: 298999
URL: http://llvm.org/viewvc/llvm-project?rev=298999&view=rev
Log:
[MachineVerifier] Drop a spurious const
As of r298987 the argument is a value that we std::move, so it
shouldn't be const anymore.
Modified:
llvm/trunk/lib/CodeGen/MachineVerifier.cpp
Modified: llvm/trunk/lib/CodeGen/MachineVerifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/MachineVerifier.cpp?rev=298999&r1=298998&r2=298999&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/MachineVerifier.cpp (original)
+++ llvm/trunk/lib/CodeGen/MachineVerifier.cpp Wed Mar 29 10:25:06 2017
@@ -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());
}
More information about the llvm-commits
mailing list