================ @@ -978,6 +979,28 @@ NumericLiteralParser::NumericLiteralParser(StringRef TokSpelling, // we break out of the loop. for (; s != ThisTokEnd; ++s) { switch (*s) { + case 'b': + case 'B': + if (!isFPConstant) + break; // Error for integer constant. + if (isBFloat16) + break; + if (!Target.hasBFloat16Type()) + break; + if (HasSize) + break; + HasSize = true; + + if ((Target.hasBFloat16Type() || LangOpts.CUDA || + (LangOpts.OpenMPIsTargetDevice && Target.getTriple().isNVPTX())) && + s + 2 < ThisTokEnd && ---------------- overmighty wrote:
```suggestion s + 3 < ThisTokEnd && ``` https://github.com/llvm/llvm-project/pull/134214 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits