[compiler-rt] r235594 - [asan] debug_mapping.cc should also pass when the leading digit of SHADOW_SCALE is hexadecimal.

Daniel Sanders daniel.sanders at imgtec.com
Thu Apr 23 06:23:21 PDT 2015


Author: dsanders
Date: Thu Apr 23 08:23:21 2015
New Revision: 235594

URL: http://llvm.org/viewvc/llvm-project?rev=235594&view=rev
Log:
[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

Modified:
    compiler-rt/trunk/test/asan/TestCases/debug_mapping.cc

Modified: compiler-rt/trunk/test/asan/TestCases/debug_mapping.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/debug_mapping.cc?rev=235594&r1=235593&r2=235594&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/debug_mapping.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/debug_mapping.cc Thu Apr 23 08:23:21 2015
@@ -8,7 +8,7 @@
 
 // printed because of verbosity=1
 // CHECK: SHADOW_SCALE: [[SCALE:[0-9]+]]
-// CHECK: SHADOW_OFFSET: [[OFFSET:[0-9]+]]
+// CHECK: SHADOW_OFFSET: [[OFFSET:[0-9a-f]+]]
 
 int main() {
   size_t scale, offset;





More information about the llvm-commits mailing list