InstrProf: Fix a shadowing error that would break length of profile names
authorJustin Bogner <mail@justinbogner.com>
Thu, 23 Apr 2015 00:31:16 +0000 (00:31 +0000)
committerJustin Bogner <mail@justinbogner.com>
Thu, 23 Apr 2015 00:31:16 +0000 (00:31 +0000)
commit60d852ba5b6ab568b23be94816b0f87c293107f5
tree09bbffcad03d852f8bf12a86a32d34c3d2f67b90
parent46e9f9df15483c6bbb55c24d9e6d4bb7776e377d
InstrProf: Fix a shadowing error that would break length of profile names

We try to use the member variable "FuncName" here, but we've also used
that name as a parameter. This ends with us getting the length of the
function name wrong when we generate the coverage data.

llvm-svn: 235565
clang/lib/CodeGen/CodeGenPGO.cpp
clang/test/CoverageMapping/unused_names.c