================
@@ -1332,6 +1334,11 @@ StringLiteral::getLocationOfByte(unsigned ByteNo, const 
SourceManager &SM,
                                  const LangOptions &Features,
                                  const TargetInfo &Target, unsigned 
*StartToken,
                                  unsigned *StartTokenByteOffset) const {
+  // No source location of bytes for binary literals since they don't come from
+  // source.
+  if (getKind() == StringLiteralKind::Binary)
+    return getStrTokenLoc(0);
----------------
AaronBallman wrote:

Does this mean that diagnostics involving invalid use of binary string literals 
will have no source location to point to?

https://github.com/llvm/llvm-project/pull/127629
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to