[Mlir-commits] [llvm] [mlir] [DataLayout] Refactor the rest of `parseSpecification` (PR #104545)
Sergei Barannikov
llvmlistbot at llvm.org
Mon Aug 19 21:08:29 PDT 2024
================
@@ -197,9 +197,9 @@ DataLayoutImporter::tryToEmplaceStackAlignmentEntry(StringRef token) {
if (failed(alignment))
return failure();
- // Only store the stack alignment if it has a non-default value.
+ // Stack alignment shouldn't be zero.
if (*alignment == 0)
- return success();
+ return failure();
----------------
s-barannikov wrote:
@gysit
Please take a look if this change is ok.
Previously, "S0" in data layout string was equivalent to omitting it. After this patch, specifying zero for alignment is not allowed.
https://github.com/llvm/llvm-project/pull/104545
More information about the Mlir-commits
mailing list