Skip to content

Commit

Permalink
[clang][Interp][NFC] Fix two small code style problems
Browse files Browse the repository at this point in the history
  • Loading branch information
tbaederr committed Jul 23, 2023
1 parent 91cab53 commit 142bfaf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clang/lib/AST/Interp/ByteCodeStmtGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ bool ByteCodeStmtGen<Emitter>::visitFunc(const FunctionDecl *F) {
ReturnType = this->classify(F->getReturnType());

// Constructor. Set up field initializers.
if (const auto Ctor = dyn_cast<CXXConstructorDecl>(F)) {
if (const auto *Ctor = dyn_cast<CXXConstructorDecl>(F)) {
const RecordDecl *RD = Ctor->getParent();
const Record *R = this->getRecord(RD);
if (!R)
Expand Down Expand Up @@ -133,7 +133,7 @@ bool ByteCodeStmtGen<Emitter>::visitFunc(const FunctionDecl *F) {
} else if (const Type *Base = Init->getBaseClass()) {
// Base class initializer.
// Get This Base and call initializer on it.
auto *BaseDecl = Base->getAsCXXRecordDecl();
const auto *BaseDecl = Base->getAsCXXRecordDecl();
assert(BaseDecl);
const Record::Base *B = R->getBase(BaseDecl);
assert(B);
Expand Down

0 comments on commit 142bfaf

Please sign in to comment.