summaryrefslogtreecommitdiffstats
path: root/test/CoverageMapping
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-04-23 00:31:16 +0000
committerJustin Bogner <mail@justinbogner.com>2015-04-23 00:31:16 +0000
commit606e494fb80f29bf4908a055b70347b3b017f7f4 (patch)
treebfe2ecbdb9349dad3390aa76fa562240ef0a35a2 /test/CoverageMapping
parente6800daa07ecc59750116a591dfd337372151034 (diff)
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
Diffstat (limited to 'test/CoverageMapping')
-rw-r--r--test/CoverageMapping/unused_names.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CoverageMapping/unused_names.c b/test/CoverageMapping/unused_names.c
index 8a57957378..d229492eca 100644
--- a/test/CoverageMapping/unused_names.c
+++ b/test/CoverageMapping/unused_names.c
@@ -4,9 +4,9 @@
// Since foo is never emitted, there should not be a profile name for it.
-// CHECK-DAG: @__llvm_profile_name_bar = {{.*}} section "{{.*}}__llvm_prf_names"
-// CHECK-DAG: @__llvm_profile_name_baz = {{.*}} section "{{.*}}__llvm_prf_names"
-// CHECK-DAG: @"__llvm_profile_name_unused_names.c:qux" = {{.*}} section "{{.*}}__llvm_prf_names"
+// CHECK-DAG: @__llvm_profile_name_bar = {{.*}} [3 x i8] c"bar", section "{{.*}}__llvm_prf_names"
+// CHECK-DAG: @__llvm_profile_name_baz = {{.*}} [3 x i8] c"baz", section "{{.*}}__llvm_prf_names"
+// CHECK-DAG: @"__llvm_profile_name_unused_names.c:qux" = {{.*}} [18 x i8] c"unused_names.c:qux", section "{{.*}}__llvm_prf_names"
// SYSHEADER-NOT: @__llvm_profile_name_foo =