[llvm] [RemoveDIs] Load into new debug info format by default in LLVM (PR #89799)
Orlando Cazalet-Hyams via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 25 03:34:39 PDT 2024
================
@@ -1077,6 +1073,11 @@ TEST(MetadataTest, DbgVariableRecordConversionRoutines) {
!11 = !DILocation(line: 1, column: 1, scope: !6)
)");
+ // For the purpose of this test, set and un-set the command line option
+ // corresponding to UseNewDbgInfoFormat, but only after parsing, to ensure
+ // that the IR starts off in the old format.
+ UseNewDbgInfoFormat = true;
----------------
OCHyams wrote:
At the end of this test is `UseNewDbgInfoFormat = false`. Shouldn't it get reset to whatever `UseNewDbgInfoFormat` was before this assignment?
https://github.com/llvm/llvm-project/pull/89799
More information about the llvm-commits
mailing list