From: Roman Lebedev Date: Tue, 17 Jul 2018 07:12:08 +0000 (+0000) Subject: Harden/relax clang/test/CodeGen/opt-record-MIR.c test X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=de3003c4189d27f04678d5295dd6b4d4700f7d3f;p=clang 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 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@337249 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/CodeGen/opt-record-MIR.c b/test/CodeGen/opt-record-MIR.c index 00b91ffdf3..37239281e9 100644 --- a/test/CodeGen/opt-record-MIR.c +++ b/test/CodeGen/opt-record-MIR.c @@ -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: '{{.}}'