From: Bill Wendling Date: Sun, 10 Feb 2013 23:18:05 +0000 (+0000) Subject: The 'Raw' method cannot handle 'string' attributes. Don't even try. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d746e407046437f5bf20d5d3cb1fbf846a672359;p=platform%2Fupstream%2Fllvm.git The 'Raw' method cannot handle 'string' attributes. Don't even try. llvm-svn: 174848 --- diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index e64603c..343f569 100644 --- a/llvm/lib/IR/Attributes.cpp +++ b/llvm/lib/IR/Attributes.cpp @@ -468,6 +468,10 @@ uint64_t AttributeSetImpl::Raw(uint64_t Index) const { for (AttributeSetNode::const_iterator II = ASN->begin(), IE = ASN->end(); II != IE; ++II) { Attribute Attr = *II; + + // This cannot handle string attributes. + if (Attr.isStringAttribute()) continue; + Attribute::AttrKind Kind = Attr.getKindAsEnum(); if (Kind == Attribute::Alignment)