[tsan/msan] adding thread_safety and uninitialized_checks attributes

llvm-svn: 174864
This commit is contained in:
Kostya Serebryany
2013-02-11 08:13:54 +00:00
parent 35d2dc765e
commit d688bab563
12 changed files with 42 additions and 3 deletions

View File

@@ -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;
}