diff --git a/flang/lib/Evaluate/fold-integer.cpp b/flang/lib/Evaluate/fold-integer.cpp index 0e8706e0f2740..09b2f91debda2 100644 --- a/flang/lib/Evaluate/fold-integer.cpp +++ b/flang/lib/Evaluate/fold-integer.cpp @@ -719,6 +719,7 @@ Expr> FoldIntrinsicFunction( // CharacterUtils<2>::ICHAR(). Can't find a work-around, // so remove the FromInt64 error checking lambda that // seems to have caused the proble. + (void)FromInt64; [](const Scalar &c) { return CharacterUtils::ICHAR( CharacterUtils::Resize(c, 1));