diff options
| author | Bill Wendling <isanbard@gmail.com> | 2013-02-10 23:18:05 +0000 |
|---|---|---|
| committer | Bill Wendling <isanbard@gmail.com> | 2013-02-10 23:18:05 +0000 |
| commit | d746e407046437f5bf20d5d3cb1fbf846a672359 (patch) | |
| tree | 6a575ce5f89e4372c796d0ef9aa0c329dbe0d8f9 /llvm/lib | |
| parent | d7e05d628afef86eb2633587bb1e427df6105a47 (diff) | |
| download | bcm5719-llvm-d746e407046437f5bf20d5d3cb1fbf846a672359.tar.gz bcm5719-llvm-d746e407046437f5bf20d5d3cb1fbf846a672359.zip | |
The 'Raw' method cannot handle 'string' attributes. Don't even try.
llvm-svn: 174848
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/IR/Attributes.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/IR/Attributes.cpp b/llvm/lib/IR/Attributes.cpp index e64603c2f59..343f569a118 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) |

