Skip to content

Commit 05910b4

Browse files
authored
[clang][bytecode][NFC] Use const auto* for Type cast result (#114405)
1 parent df9301e commit 05910b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/ByteCode/Program.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,10 +399,10 @@ Descriptor *Program::createDescriptor(const DeclTy &D, const Type *Ty,
399399
}
400400

401401
// Arrays.
402-
if (const auto ArrayType = Ty->getAsArrayTypeUnsafe()) {
402+
if (const auto *ArrayType = Ty->getAsArrayTypeUnsafe()) {
403403
QualType ElemTy = ArrayType->getElementType();
404404
// Array of well-known bounds.
405-
if (auto CAT = dyn_cast<ConstantArrayType>(ArrayType)) {
405+
if (const auto *CAT = dyn_cast<ConstantArrayType>(ArrayType)) {
406406
size_t NumElems = CAT->getZExtSize();
407407
if (std::optional<PrimType> T = Ctx.classify(ElemTy)) {
408408
// Arrays of primitives.

0 commit comments

Comments
 (0)