diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-09 20:28:54 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-09 20:28:54 +0000 |
commit | 6b73e8a2809b28158a8ee10b63a91b3b778f56f9 (patch) | |
tree | 5ad8519d924576f5a57f48f6d773ff5a1eddb577 /include/llvm | |
parent | 4f8d27338e92ae474fa51fd0bcaeffcca4cb15fb (diff) |
Use appropriate method calls to get the alignment value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165541 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-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 aa7bc32761a..fcfacb12a55 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; } |