[llvm] a9e10a0 - [DWARFYAML] Remove useless conditional statement. NFC.
Xing GUO via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 15 04:06:06 PDT 2020
Author: Xing GUO
Date: 2020-07-15T19:04:58+08:00
New Revision: a9e10a09651fa685876d2104254236b6840ad1af
URL: https://github.com/llvm/llvm-project/commit/a9e10a09651fa685876d2104254236b6840ad1af
DIFF: https://github.com/llvm/llvm-project/commit/a9e10a09651fa685876d2104254236b6840ad1af.diff
LOG: [DWARFYAML] Remove useless conditional statement. NFC.
The conditional statement is useless after
3a48a632d00ef1c98042140f402337fe13cdff52.
Added:
Modified:
llvm/lib/ObjectYAML/DWARFVisitor.cpp
Removed:
################################################################################
diff --git a/llvm/lib/ObjectYAML/DWARFVisitor.cpp b/llvm/lib/ObjectYAML/DWARFVisitor.cpp
index a2dd37b5fe32..c393b17aaa33 100644
--- a/llvm/lib/ObjectYAML/DWARFVisitor.cpp
+++ b/llvm/lib/ObjectYAML/DWARFVisitor.cpp
@@ -49,8 +49,6 @@ static unsigned getRefSize(const DWARFYAML::Unit &Unit) {
template <typename T> Error DWARFYAML::VisitorImpl<T>::traverseDebugInfo() {
for (auto &Unit : DebugInfo.CompileUnits) {
onStartCompileUnit(Unit);
- if (Unit.Entries.empty())
- continue;
for (auto &Entry : Unit.Entries) {
onStartDIE(Unit, Entry);
More information about the llvm-commits
mailing list