From: Patrik Hagglund Date: Sun, 24 Aug 2014 09:12:33 +0000 (+0000) Subject: Silence gcc -Wpedantic. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=401ca953877cc508d807f8e16f53bcc2a616b705;p=oota-llvm.git Silence gcc -Wpedantic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216344 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-cov/llvm-cov.cpp b/tools/llvm-cov/llvm-cov.cpp index 9c9cdef1659..0a540b7a929 100644 --- a/tools/llvm-cov/llvm-cov.cpp +++ b/tools/llvm-cov/llvm-cov.cpp @@ -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); }