projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7e05d6
)
The 'Raw' method cannot handle 'string' attributes. Don't even try.
author
Bill Wendling
<isanbard@gmail.com>
Sun, 10 Feb 2013 23:18:05 +0000
(23:18 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Sun, 10 Feb 2013 23:18:05 +0000
(23:18 +0000)
llvm-svn: 174848
llvm/lib/IR/Attributes.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Attributes.cpp
b/llvm/lib/IR/Attributes.cpp
index e64603c2f59cadc35fa3e22b0a88c7b41f396b00..343f569a1183750944f8ec2254e96cd609bc880c 100644
(file)
--- 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)