aaron.ballman added inline comments.
================ Comment at: clang/lib/Sema/SemaDecl.cpp:16198-16201 + if (EnumTy->isPromotableIntegerType()) + ED->setPromotionType(Context.getPromotedIntegerType(EnumTy)); + else + ED->setPromotionType(EnumTy); ---------------- ================ Comment at: clang/lib/Sema/SemaDecl.cpp:16824-16828 + QualType EnumTy = ED->getIntegerType(); + if (EnumTy->isPromotableIntegerType()) + ED->setPromotionType(Context.getPromotedIntegerType(EnumTy)); + else + ED->setPromotionType(EnumTy); ---------------- Same here as above Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D130210/new/ https://reviews.llvm.org/D130210 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits