]> granicus.if.org Git - clang/commit
Make test resistant to false matches of numbered (unnamed) labels inside other numbers.
authorYaron Keren <yaron.keren@gmail.com>
Sun, 30 Aug 2015 15:24:46 +0000 (15:24 +0000)
committerYaron Keren <yaron.keren@gmail.com>
Sun, 30 Aug 2015 15:24:46 +0000 (15:24 +0000)
commitdbd46ba38c7435b0d5aaa243c391036e2c9e9bc1
tree7bf427f1d93a6382596de303deba3dea20595cbb
parent0e98a65c8f4b429c6b14893912440d8c9503ffff
Make test resistant to false matches of numbered (unnamed) labels inside other numbers.

In release builds labels are numbers. Matching just the number may result
in false matches where the label is contained in other numbers, such as
14 inside [114 x i8]. A stricter match requiring start of line or > character
before the label avoids these false matches.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@246385 91177308-0d34-0410-b5e6-96231b3b80d8
test/CodeGen/sanitize-trap.c