diff --git a/lib/Differentiator/ConstantFolder.cpp b/lib/Differentiator/ConstantFolder.cpp index e803b5aea..6439c6eaa 100644 --- a/lib/Differentiator/ConstantFolder.cpp +++ b/lib/Differentiator/ConstantFolder.cpp @@ -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());