[llvm] r216344 - Silence gcc -Wpedantic.
Patrik Hagglund
patrik.h.hagglund at ericsson.com
Sun Aug 24 02:12:34 PDT 2014
Author: patha
Date: Sun Aug 24 04:12:33 2014
New Revision: 216344
URL: http://llvm.org/viewvc/llvm-project?rev=216344&view=rev
Log:
Silence gcc -Wpedantic.
Modified:
llvm/trunk/tools/llvm-cov/llvm-cov.cpp
Modified: llvm/trunk/tools/llvm-cov/llvm-cov.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-cov/llvm-cov.cpp?rev=216344&r1=216343&r2=216344&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-cov/llvm-cov.cpp (original)
+++ llvm/trunk/tools/llvm-cov/llvm-cov.cpp Sun Aug 24 04:12:33 2014
@@ -50,7 +50,7 @@ int main(int argc, const char **argv) {
func = gcov_main;
if (func) {
- std::string Invocation(std::string(argv[0]) + " " + argv[1]);
+ std::string Invocation(std::string() + argv[0] + " " + argv[1]);
argv[1] = Invocation.c_str();
return func(argc - 1, argv + 1);
}
More information about the llvm-commits
mailing list