Alternative (to r216344) fix of gcc -Wpedantic.
authorPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Thu, 18 Sep 2014 11:52:57 +0000 (11:52 +0000)
committerPatrik Hagglund <patrik.h.hagglund@ericsson.com>
Thu, 18 Sep 2014 11:52:57 +0000 (11:52 +0000)
commit6c0e053dc99a0e214f03f2d607b935c76a21c5ad
treecc433888dcc198ecfb41e848fc774879d41dc93c
parent0a8f3afa4e91a7ffdc4a0740f7198aa1d110947b
Alternative (to r216344) fix of gcc -Wpedantic.

As suggested by David Blaikie, this may be easier to read.

The original warning was:

../tools/llvm-cov/llvm-cov.cpp:53:49: error: ISO C++ forbids zero-size array 'argv' [-Werror=pedantic]
       std::string Invocation(std::string(argv[0]) + " " + argv[1]);

It seems to be the case that GCC's warning gets confused and thinks
'argv' is a declaration here. GCC bugzilla issue #61259.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218048 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-cov/llvm-cov.cpp