[Lldb-commits] [lldb] 41f2bb2 - [nfc] [lldb] Remove excessive parentheses in SymbolFileDWARF::GetUID

Jan Kratochvil via lldb-commits lldb-commits at lists.llvm.org
Thu Oct 29 10:01:55 PDT 2020


Author: Jan Kratochvil
Date: 2020-10-29T18:01:37+01:00
New Revision: 41f2bb232cc064c0289de877552cbd6a077a7ba5

URL: https://github.com/llvm/llvm-project/commit/41f2bb232cc064c0289de877552cbd6a077a7ba5
DIFF: https://github.com/llvm/llvm-project/commit/41f2bb232cc064c0289de877552cbd6a077a7ba5.diff

LOG: [nfc] [lldb] Remove excessive parentheses in SymbolFileDWARF::GetUID

Added: 
    

Modified: 
    lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
index be9832a14dfa..4036b01105ea 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp
@@ -1270,7 +1270,7 @@ user_id_t SymbolFileDWARF::GetUID(DIERef ref) {
 
   return user_id_t(GetDwoNum().getValueOr(0x7fffffff)) << 32 |
          ref.die_offset() |
-         (lldb::user_id_t(ref.section() == DIERef::Section::DebugTypes) << 63);
+         lldb::user_id_t(ref.section() == DIERef::Section::DebugTypes) << 63;
 }
 
 llvm::Optional<SymbolFileDWARF::DecodedUID>


        


More information about the lldb-commits mailing list