[PATCH] D72998: [IR] Attribute/AttrBuilder: use Value::MaximumAlignment magic constant
Erich Keane via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 21 07:55:08 PST 2020
erichkeane added a comment.
In D72998#1828571 <https://reviews.llvm.org/D72998#1828571>, @lebedev.ri wrote:
> In D72998#1828559 <https://reviews.llvm.org/D72998#1828559>, @hfinkel wrote:
>
> > Can we, at least, put this constant in a header file so we don't repeat it in several places?
>
>
> Remember, we can't use `llvm::Value::MaximumAlignment` itself in clang sema.
> Which header do you have in mind?
>
> > Also, can we write it as 0x20000000 so that it's more obvious what the value is.
>
> Sure, will do.
I'd suggest just putting it as a constant in SEMA. Also can you fix this one too? https://github.com/llvm-mirror/clang/commit/726918e196b413bcd80f08494c061fd6b3f26c94
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D72998/new/
https://reviews.llvm.org/D72998
More information about the llvm-commits
mailing list