[all-commits] [llvm/llvm-project] 319c11: [YAML] Init local var not set by some branches (#1...
Vitaly Buka via All-commits
all-commits at lists.llvm.org
Wed Jan 15 16:20:13 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 319c1190939960d009c88baf0d5fb97a549b7a57
https://github.com/llvm/llvm-project/commit/319c1190939960d009c88baf0d5fb97a549b7a57
Author: Vitaly Buka <vitalybuka at google.com>
Date: 2025-01-15 (Wed, 15 Jan 2025)
Changed paths:
M llvm/lib/ObjectYAML/ELFYAML.cpp
Log Message:
-----------
[YAML] Init local var not set by some branches (#123137)
It will not be set if:
1. `(TypeStr.starts_with("SHT_") || isInteger(TypeStr)) == false`: here
we want go to switch default.
2. `IO.mapRequired("Type", Type);` fail parsing. It sets error
internally, so probably not important what happen next, so it's go to
the switch
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list