Skip to content

Commit

Permalink
Use AnyCharacterType check instead of plain CharType
Browse files Browse the repository at this point in the history
  • Loading branch information
kchristin22 committed Sep 3, 2024
1 parent fd45301 commit 0413ab7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Differentiator/ConstantFolder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ namespace clad {
} else if (QT->isBooleanType()) {
Result = clad::synthesizeLiteral(QT, C, (bool)val);
} else if (QT->isIntegralType(C)) {
if (QT->isCharType())
if (QT->isAnyCharacterType())
QT = C.IntTy;
llvm::APInt APVal(C.getIntWidth(QT), val,
QT->isSignedIntegerOrEnumerationType());
Expand Down

0 comments on commit 0413ab7

Please sign in to comment.