Skip to content

Commit 44d4a05

Browse files
committed
address comments
1 parent 1ecd883 commit 44d4a05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/Type.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2866,9 +2866,9 @@ bool QualType::isCppTriviallyRelocatableType(const ASTContext &Context) const {
28662866
QualType BaseElementType = Context.getBaseElementType(*this);
28672867
if (BaseElementType->isIncompleteType())
28682868
return false;
2869-
else if (BaseElementType->isScalarType())
2869+
if (BaseElementType->isScalarType())
28702870
return true;
2871-
else if (const auto *RD = BaseElementType->getAsCXXRecordDecl())
2871+
if (const auto *RD = BaseElementType->getAsCXXRecordDecl())
28722872
return RD->isTriviallyRelocatable();
28732873
return false;
28742874
}

0 commit comments

Comments
 (0)