[PATCH] D99365: [lld-macho][nfc] Removed unnecessary sratic_cast
    Vy Nguyen via Phabricator via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Thu Mar 25 12:01:12 PDT 2021
    
    
  
oontvoo created this revision.
Herald added a reviewer: int3.
Herald added a project: lld-macho.
Herald added a reviewer: lld-macho.
oontvoo requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Repository:
  rG LLVM Github Monorepo
https://reviews.llvm.org/D99365
Files:
  lld/MachO/Symbols.h
Index: lld/MachO/Symbols.h
===================================================================
--- lld/MachO/Symbols.h
+++ lld/MachO/Symbols.h
@@ -43,7 +43,7 @@
 
   virtual ~Symbol() {}
 
-  Kind kind() const { return static_cast<Kind>(symbolKind); }
+  Kind kind() const { return symbolKind; }
 
   StringRef getName() const {
     if (nameSize == (uint32_t)-1)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99365.333383.patch
Type: text/x-patch
Size: 364 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210325/2b0bb3ab/attachment.bin>
    
    
More information about the llvm-commits
mailing list