Skip to content

Conversation

kazutakahirata
Copy link
Contributor

type is already of lldb::SymbolType.

type is already of lldb::SymbolType.
@llvmbot
Copy link
Member

llvmbot commented Aug 8, 2025

@llvm/pr-subscribers-lldb

Author: Kazu Hirata (kazutakahirata)

Changes

type is already of lldb::SymbolType.


Full diff: https://github.com/llvm/llvm-project/pull/152642.diff

1 Files Affected:

  • (modified) lldb/include/lldb/Symbol/Symbol.h (+1-1)
diff --git a/lldb/include/lldb/Symbol/Symbol.h b/lldb/include/lldb/Symbol/Symbol.h
index 688c8a5931feb..0674e56ef43f5 100644
--- a/lldb/include/lldb/Symbol/Symbol.h
+++ b/lldb/include/lldb/Symbol/Symbol.h
@@ -167,7 +167,7 @@ class Symbol : public SymbolContextScope {
 
   lldb::SymbolType GetType() const { return (lldb::SymbolType)m_type; }
 
-  void SetType(lldb::SymbolType type) { m_type = (lldb::SymbolType)type; }
+  void SetType(lldb::SymbolType type) { m_type = type; }
 
   const char *GetTypeAsString() const;
 

@kazutakahirata kazutakahirata merged commit 1a502da into llvm:main Aug 8, 2025
11 checks passed
@kazutakahirata kazutakahirata deleted the cleanup_20250807_cast_lldb branch August 8, 2025 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants