]> granicus.if.org Git - clang/commitdiff
Harden/relax clang/test/CodeGen/opt-record-MIR.c test
authorRoman Lebedev <lebedev.ri@gmail.com>
Tue, 17 Jul 2018 07:12:08 +0000 (07:12 +0000)
committerRoman Lebedev <lebedev.ri@gmail.com>
Tue, 17 Jul 2018 07:12:08 +0000 (07:12 +0000)
Summary:
If the build path is short, `Line` field can end up fitting on the same line as `File`,
but the `{{.*}}` would consume it. Keeping in mind rL293149, i think we can fix it,
while keeping it working when there are and there are not any quotations.
At least this fixes this test for me.

Reviewers: anemet, aaron.ballman, hfinkel

Reviewed By: anemet

Subscribers: cfe-commits, llvm-commits

Differential Revision: https://reviews.llvm.org/D49348

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

test/CodeGen/opt-record-MIR.c

index 00b91ffdf3cba6f296cbc414e3dabe2b4ac58b2d..37239281e9e9fa8ec9a6a4599c17e01ba72b8aa3 100644 (file)
@@ -21,8 +21,9 @@ void foo(float *p, int i) {
 // 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:       '{{.}}'