summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2013-02-11 08:13:54 +0000
committerKostya Serebryany <kcc@google.com>2013-02-11 08:13:54 +0000
commitd688bab563da574394913722eea9fb8a9e062660 (patch)
tree0d32257552d82cc26eab960dba3a1af6f5ace4c7 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent35d2dc765e8e69f6710104f5fd6109a1f49c085e (diff)
downloadbcm5719-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/Writer/BitcodeWriter.cpp')
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriter.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
OpenPOWER on IntegriCloud