]> granicus.if.org Git - clang/commit
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)
commit606e494fb80f29bf4908a055b70347b3b017f7f4
treebfe2ecbdb9349dad3390aa76fa562240ef0a35a2
parente6800daa07ecc59750116a591dfd337372151034
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@235565 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPGO.cpp
test/CoverageMapping/unused_names.c