[PATCH] D49348: Harden/relax clang/test/CodeGen/opt-record-MIR.c test

Roman Lebedev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sun Jul 15 13:00:52 PDT 2018


lebedev.ri updated this revision to Diff 155591.
lebedev.ri added a comment.

Simplify regex even more.


Repository:
  rC Clang

https://reviews.llvm.org/D49348

Files:
  test/CodeGen/opt-record-MIR.c


Index: test/CodeGen/opt-record-MIR.c
===================================================================
--- test/CodeGen/opt-record-MIR.c
+++ test/CodeGen/opt-record-MIR.c
@@ -21,8 +21,9 @@
 // YAML: --- !Missed
 // YAML: Pass:            regalloc
 // YAML: Name:            LoopSpillReload
-// YAML: DebugLoc:        { File: {{.*}},
-// YAML:                    Line: 10, Column: 11 }
+// YAML: DebugLoc:        { File: {{[^,]+}},
+// YAML:                    Line: 10,
+// YAML:                    Column: 11 }
 // YAML: Function:        foo
 // YAML: Args:
 // YAML:   - NumSpills:       '{{.}}'


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49348.155591.patch
Type: text/x-patch
Size: 600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180715/9bca17b3/attachment.bin>


More information about the cfe-commits mailing list