Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristin22 committed Aug 13, 2024
1 parent 1de6bbe commit 17012c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Differentiator/CladUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ namespace clad {
else if (T->isArrayType())
valueType =
T->getPointeeOrArrayElementType()->getCanonicalTypeInternal();
else if (T->isEnumeralType()){
else if (T->isEnumeralType()) {
if (const auto* ET = dyn_cast<EnumType>(T))
valueType = ET->getDecl()->getIntegerType();
}
Expand Down
3 changes: 1 addition & 2 deletions lib/Differentiator/VisitorBase.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,7 @@ namespace clad {
if (T->isVoidType())
return nullptr;
else if (T->isScalarType() && !T->isPointerType()) {
ExprResult Zero =
ConstantFolder::synthesizeLiteral(T, m_Context, 0);
ExprResult Zero = ConstantFolder::synthesizeLiteral(T, m_Context, 0);
CastKind CK = m_Sema.PrepareScalarCast(Zero, T);
return m_Sema.ImpCastExprToType(Zero.get(), T, CK).get();
}
Expand Down

0 comments on commit 17012c0

Please sign in to comment.