diff options
| author | Shafik Yaghmour <syaghmour@apple.com> | 2018-11-08 18:42:00 +0000 |
|---|---|---|
| committer | Shafik Yaghmour <syaghmour@apple.com> | 2018-11-08 18:42:00 +0000 |
| commit | 8c5ec1ff4653ff4011c5228f8fbdc800ebe35456 (patch) | |
| tree | bfce6fb0f380e8553093573b1ea12d363425af0d /lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp | |
| parent | 7a44fe956a249585187cd5f82a0683dc117e0ae8 (diff) | |
| download | bcm5719-llvm-8c5ec1ff4653ff4011c5228f8fbdc800ebe35456.tar.gz bcm5719-llvm-8c5ec1ff4653ff4011c5228f8fbdc800ebe35456.zip | |
Refactor ClangASTContext::AddEnumerationValueToEnumerationType() to remove redundant parameter which can be calculated from other parameter.
rdar://problem/43822994
Differential Revision: https://reviews.llvm.org/D54003
llvm-svn: 346428
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp')
| -rw-r--r-- | lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp b/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp index b2f6a296557..145587ac5be 100644 --- a/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp +++ b/lldb/source/Plugins/SymbolFile/PDB/PDBASTParser.cpp @@ -1122,8 +1122,7 @@ bool PDBASTParser::AddEnumValue(CompilerType enum_type, uint32_t byte_size = m_ast.getASTContext()->getTypeSize( ClangUtil::GetQualType(underlying_type)); auto enum_constant_decl = m_ast.AddEnumerationValueToEnumerationType( - enum_type.GetOpaqueQualType(), underlying_type, decl, name.c_str(), - raw_value, byte_size * 8); + enum_type, decl, name.c_str(), raw_value, byte_size * 8); if (!enum_constant_decl) return false; |

