[PATCH] D144685: [LangRef] Correct value ranges for address space, vector, and float bit sizes.

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 23 16:55:37 PST 2023


arsenm accepted this revision.
arsenm added inline comments.
This revision is now accepted and ready to land.


================
Comment at: llvm/lib/IR/DataLayout.cpp:308
       if (!isUInt<24>(AddrSpace))
-        return reportError("Invalid address space, must be a 24bit integer");
+        return reportError("Invalid address space, must be a 24-bit integer");
 
----------------
probably should have test coverage for this


================
Comment at: llvm/lib/IR/DataLayout.cpp:574
   if (!isUInt<24>(BitWidth))
-    return reportError("Invalid bit width, must be a 24bit integer");
+    return reportError("Invalid bit width, must be a 24-bit integer");
   if (PrefAlign < ABIAlign)
----------------
probably should have test coverage for this


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D144685/new/

https://reviews.llvm.org/D144685



More information about the llvm-commits mailing list