mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-16 00:33:10 +00:00
The 'Raw' method cannot handle 'string' attributes. Don't even try.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@174848 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8620bd3178
commit
2153691a8b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user