File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
lldb/source/Plugins/SymbolFile/DWARF Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2328,8 +2328,8 @@ size_t DWARFASTParserClang::ParseChildEnumerators(
2328
2328
if (!NumPositiveBits && !NumNegativeBits)
2329
2329
NumPositiveBits = 1 ;
2330
2330
2331
- clang::QualType qual_type ( ClangUtil::GetQualType (clang_type));
2332
- clang::EnumDecl *enum_decl = qual_type ->getAs <clang::EnumType>()->getDecl ();
2331
+ clang::EnumDecl *enum_decl =
2332
+ ClangUtil::GetQualType (clang_type) ->getAs <clang::EnumType>()->getDecl ();
2333
2333
enum_decl->setNumPositiveBits (NumPositiveBits);
2334
2334
enum_decl->setNumNegativeBits (NumNegativeBits);
2335
2335
@@ -2368,7 +2368,8 @@ size_t DWARFASTParserClang::ParseChildEnumerators(
2368
2368
} else {
2369
2369
BestWidth = Context.getTargetInfo ().getLongLongWidth ();
2370
2370
}
2371
- BestPromotionType = (BestWidth <= IntWidth ? Context.IntTy : qual_type);
2371
+ BestPromotionType =
2372
+ BestWidth <= IntWidth ? Context.IntTy : enum_decl->getIntegerType ();
2372
2373
} else {
2373
2374
// If there is no negative value, figure out the smallest type that fits
2374
2375
// all of the enumerator values.
You can’t perform that action at this time.
0 commit comments