[llvm] 8496089 - Remove unnecessary braces

David Blaikie via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 8 14:37:37 PDT 2022


Author: David Blaikie
Date: 2022-07-08T21:37:24Z
New Revision: 84960896236338eb1c7b30f34041214e64db0bd1

URL: https://github.com/llvm/llvm-project/commit/84960896236338eb1c7b30f34041214e64db0bd1
DIFF: https://github.com/llvm/llvm-project/commit/84960896236338eb1c7b30f34041214e64db0bd1.diff

LOG: Remove unnecessary braces

Added: 
    

Modified: 
    llvm/lib/DebugInfo/DWARF/DWARFDie.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
index 33f79baf483d..15a2d23c4fd2 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFDie.cpp
@@ -153,11 +153,10 @@ static void dumpAttribute(raw_ostream &OS, const DWARFDie &Die,
   if (!Name.empty())
     WithColor(OS, Color) << Name;
   else if (Attr == DW_AT_decl_line || Attr == DW_AT_call_line) {
-    if (Optional<uint64_t> Val = FormValue.getAsUnsignedConstant()) {
+    if (Optional<uint64_t> Val = FormValue.getAsUnsignedConstant())
       OS << *Val;
-    } else {
+    else
       FormValue.dump(OS, DumpOpts);
-    }
   } else if (Attr == DW_AT_low_pc &&
              (FormValue.getAsAddress() ==
               dwarf::computeTombstoneAddress(U->getAddressByteSize()))) {


        


More information about the llvm-commits mailing list