From 401ca953877cc508d807f8e16f53bcc2a616b705 Mon Sep 17 00:00:00 2001 From: Patrik Hagglund Date: Sun, 24 Aug 2014 09:12:33 +0000 Subject: [PATCH] Silence gcc -Wpedantic. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216344 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-cov/llvm-cov.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.34.1