lebedev.ri created this revision. lebedev.ri added reviewers: anemet, aaron.ballman, hfinkel. Herald added a subscriber: cfe-commits.
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 https://reviews.llvm.org/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. 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: {{.*}}.c{{['"]*}}, +// YAML: Line: 10, +// YAML: Column: 11 } // YAML: Function: foo // YAML: Args: // YAML: - NumSpills: '{{.}}'
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: {{.*}}.c{{['"]*}}, +// YAML: Line: 10, +// YAML: Column: 11 } // YAML: Function: foo // YAML: Args: // YAML: - NumSpills: '{{.}}'
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits