diff options
| author | Sagar Thakur <sagar.thakur@imgtec.com> | 2016-09-22 08:36:54 +0000 |
|---|---|---|
| committer | Sagar Thakur <sagar.thakur@imgtec.com> | 2016-09-22 08:36:54 +0000 |
| commit | 2ce2ab3a4dc1df6ec87a42aa2baa6741c2456e0c (patch) | |
| tree | a154f8db03d564453baac47b56e1bacd0ccde999 /compiler-rt/lib/esan/cache_frag.cpp | |
| parent | e74eb4e7b991d774125812389c7a19d282c3357b (diff) | |
| download | bcm5719-llvm-2ce2ab3a4dc1df6ec87a42aa2baa6741c2456e0c.tar.gz bcm5719-llvm-2ce2ab3a4dc1df6ec87a42aa2baa6741c2456e0c.zip | |
[ESan][MIPS] Fix tests struct-simple.cpp on MIPS
For mips assember '#' is the start of comment. We get assembler error messages if # is used in the struct names. Therefore using '$' which works for all architectures.
Differential: D24335
Reviewed by: zhaoqin
llvm-svn: 282142
Diffstat (limited to 'compiler-rt/lib/esan/cache_frag.cpp')
| -rw-r--r-- | compiler-rt/lib/esan/cache_frag.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/esan/cache_frag.cpp b/compiler-rt/lib/esan/cache_frag.cpp index a3e612daceb..5fa5c7d5424 100644 --- a/compiler-rt/lib/esan/cache_frag.cpp +++ b/compiler-rt/lib/esan/cache_frag.cpp @@ -94,8 +94,8 @@ static void reportStructCounter(StructHashMap::Handle &Handle) { type = "struct"; start = &Struct->StructName[7]; } - // Remove the suffixes with '#' during print. - end = strchr(start, '#'); + // Remove the suffixes with '$' during print. + end = strchr(start, '$'); CHECK(end != nullptr); Report(" %s %.*s\n", type, end - start, start); Report(" size = %u, count = %llu, ratio = %llu, array access = %llu\n", |

