diff options
author | Kostya Serebryany <kcc@google.com> | 2013-02-11 08:13:54 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-02-11 08:13:54 +0000 |
commit | ab39afa9d9b99c61842c8e3d0eb706bd16efdcf3 (patch) | |
tree | 35b53df2aaa398d54deefbc9ff458c3ca93ebb10 /lib/Bitcode/Writer | |
parent | f64c889cc94417322b0ff8ad1c61939183bf3c38 (diff) |
[tsan/msan] adding thread_safety and uninitialized_checks attributes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174864 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode/Writer')
-rw-r--r-- | lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Bitcode/Writer/BitcodeWriter.cpp b/lib/Bitcode/Writer/BitcodeWriter.cpp index 37dcb461e3..65c3f7329d 100644 --- a/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/lib/Bitcode/Writer/BitcodeWriter.cpp @@ -181,7 +181,7 @@ static uint64_t encodeLLVMAttributesForBitcode(AttributeSet Attrs, uint64_t EncodedAttrs = Attrs.Raw(Index) & 0xffff; if (Attrs.hasAttribute(Index, Attribute::Alignment)) EncodedAttrs |= Attrs.getParamAlignment(Index) << 16; - EncodedAttrs |= (Attrs.Raw(Index) & (0xffffULL << 21)) << 11; + EncodedAttrs |= (Attrs.Raw(Index) & (0xfffffULL << 21)) << 11; return EncodedAttrs; } |