OSDN Git Service

Make these regexes stricter by disallowing any additional characters in the output.
authorAdrian Prantl <aprantl@apple.com>
Thu, 7 Aug 2014 23:04:07 +0000 (23:04 +0000)
committerAdrian Prantl <aprantl@apple.com>
Thu, 7 Aug 2014 23:04:07 +0000 (23:04 +0000)
Thanks to dblaikie for pointing this out!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215166 91177308-0d34-0410-b5e6-96231b3b80d8

test/CodeGen/ARM/debug-info-sreg2.ll
test/DebugInfo/ARM/s-super-register.ll

index 6e20286..c74bd43 100644 (file)
@@ -10,7 +10,7 @@ target triple = "thumbv7-apple-macosx10.6.7"
 
 ; CHECK: 0x00000000: Beginning address offset:
 ; CHECK-NEXT:           Ending address offset:
-; CHECK-NEXT:            Location description: 90 {{.. .. .. ..}}
+; CHECK-NEXT:            Location description: 90 {{.. .. .. .. $}}
 
 define void @_Z3foov() optsize ssp {
 entry:
index 5040a79..36205df 100644 (file)
@@ -7,7 +7,7 @@ target triple = "thumbv7-apple-macosx10.6.7"
 ; 0x90   DW_OP_regx of super-register
 ; 0x93   DW_OP_piece
 ; 0x9d   DW_OP_bit_piece
-; CHECK:            Location description: 90 {{.. .. ((93 ..)|(9d .. ..))}}
+; CHECK:            Location description: 90 {{.. .. ((93 ..)|(9d .. ..)) $}}
 
 define void @_Z3foov() optsize ssp {
 entry: