[llvm] [ms] [llvm-ml] Allow PTR casting of registers to their own size (PR #132751)

Saleem Abdulrasool via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 24 14:58:15 PDT 2025


================
@@ -2569,6 +2574,8 @@ bool X86AsmParser::ParseIntelMemoryOperandSize(unsigned &Size) {
     .Cases("ZMMWORD", "zmmword", 512)
     .Default(0);
   if (Size) {
+    if (SizeStr)
+      *SizeStr = getTok().getString();
----------------
compnerd wrote:

This gets the raw token spelling right? The use of that for the diagnostics seems less than ideal (IIRC Microsoft doesn't treat the tokens as case sensitive).

https://github.com/llvm/llvm-project/pull/132751


More information about the llvm-commits mailing list