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 | d688bab563da574394913722eea9fb8a9e062660 (patch) | |
| tree | 0d32257552d82cc26eab960dba3a1af6f5ace4c7 /llvm/lib/Bitcode | |
| parent | 35d2dc765e8e69f6710104f5fd6109a1f49c085e (diff) | |
| download | bcm5719-llvm-d688bab563da574394913722eea9fb8a9e062660.tar.gz bcm5719-llvm-d688bab563da574394913722eea9fb8a9e062660.zip | |
[tsan/msan] adding thread_safety and uninitialized_checks attributes
llvm-svn: 174864
Diffstat (limited to 'llvm/lib/Bitcode')
| -rw-r--r-- | llvm/lib/Bitcode/Reader/BitcodeReader.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp index 110f47c7d86..30ba85eca61 100644 --- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp @@ -444,7 +444,7 @@ static void decodeLLVMAttributesForBitcode(AttrBuilder &B, if (Alignment) B.addAlignmentAttr(Alignment); - B.addRawValue(((EncodedAttrs & (0xffffULL << 32)) >> 11) | + B.addRawValue(((EncodedAttrs & (0xfffffULL << 32)) >> 11) | (EncodedAttrs & 0xffff)); } diff --git a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp index 37dcb461e31..65c3f7329d6 100644 --- a/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp +++ b/llvm/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; } |

