[asan] debug_mapping.cc should also pass when the leading digit of SHADOW_SCALE is...
authorDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 23 Apr 2015 13:23:21 +0000 (13:23 +0000)
committerDaniel Sanders <daniel.sanders@imgtec.com>
Thu, 23 Apr 2015 13:23:21 +0000 (13:23 +0000)
commit9316d89d55a16b2d30c0622de55aa1e73bb33b1a
tree9ec38861d97742a2a31d89c8a081dba911b16fa8
parentac990bfcd370388c59966441f2cca509baaace68
[asan] debug_mapping.cc should also pass when the leading digit of SHADOW_SCALE is hexadecimal.

Summary:
Previously the CHECK directive for SHADOW_SCALE only matched decimal digits
causing it to match '7' on x86_64 instead of the whole value.

This fixes a failure on mips-linux-gnu targets where the leading digit is 'a'.

Reviewers: kcc, sagar, timurrrr

Reviewed By: timurrrr

Subscribers: llvm-commits

Differential Revision: http://reviews.llvm.org/D9199

llvm-svn: 235594
compiler-rt/test/asan/TestCases/debug_mapping.cc