diff options
Diffstat (limited to 'include/llvm/Attributes.h')
-rw-r--r-- | include/llvm/Attributes.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/Attributes.h b/include/llvm/Attributes.h index aa7bc32..fcfacb1 100644 --- a/include/llvm/Attributes.h +++ b/include/llvm/Attributes.h @@ -334,8 +334,7 @@ public: // bits. uint64_t EncodedAttrs = Attrs.Raw() & 0xffff; if (Attrs.hasAttribute(Attributes::Alignment)) - EncodedAttrs |= (1ULL << 16) << - (((Attrs.Raw() & Attribute::Alignment_i) - 1) >> 16); + EncodedAttrs |= Attrs.getAlignment() << 16; EncodedAttrs |= (Attrs.Raw() & (0xfffULL << 21)) << 11; return EncodedAttrs; } |