Harden/relax clang/test/CodeGen/opt-record-MIR.c test

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

llvm-svn: 337249
This commit is contained in:
Roman Lebedev 2018-07-17 07:12:08 +00:00
parent 6d69f92864
commit a67e0d0989
1 changed files with 3 additions and 2 deletions

View 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: '{{.}}'