[llvm] [yaml2obj] Don't use uninitialized Type (PR #123274)
James Henderson via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 00:47:30 PST 2025
================
@@ -454,3 +454,19 @@ Sections:
# LINK-NEXT: [ 2] .ref.first PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] [[#%x,]] 1
# LINK-NEXT: [ 3] .ref.last PROGBITS [[#%x,]] [[#%x,]] [[#%x,]] [[#%x,]] 4
# LINK-NEXT: [ 4] .shstrtab
+
+# Must not crash under Msan.
+# RUN: not yaml2obj %s --docnum=15 -o %t15 2>&1 | FileCheck %s --check-prefix=FOO_SECTION
----------------
jh7370 wrote:
Let's name the CHECK prefix something more descriptive, e.g. `UNKNOWN-TYPE`. We also tend to avoid underscores in prefix names in the yaml2obj tests (too easy to mistakenly use "-" instead of "_").
https://github.com/llvm/llvm-project/pull/123274
More information about the llvm-commits
mailing list