summaryrefslogtreecommitdiffstats
path: root/llvm/lib/AsmParser
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2012-10-09 09:17:28 +0000
committerBill Wendling <isanbard@gmail.com>2012-10-09 09:17:28 +0000
commit1c1b324ccf37a0c1001bce1958bb601e9cdd083c (patch)
treeacbf42dc3db2c304cbfd72b2ac1cafd51c3928e0 /llvm/lib/AsmParser
parent93f70b78fd8509536ff34fdf7343ad069e8dcef5 (diff)
downloadbcm5719-llvm-1c1b324ccf37a0c1001bce1958bb601e9cdd083c.tar.gz
bcm5719-llvm-1c1b324ccf37a0c1001bce1958bb601e9cdd083c.zip
Use the enum value of the attributes when removing them from the attributes builder.
llvm-svn: 165495
Diffstat (limited to 'llvm/lib/AsmParser')
-rw-r--r--llvm/lib/AsmParser/LLParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/AsmParser/LLParser.cpp b/llvm/lib/AsmParser/LLParser.cpp
index 76ac0f7b4a7..86bc7aced1e 100644
--- a/llvm/lib/AsmParser/LLParser.cpp
+++ b/llvm/lib/AsmParser/LLParser.cpp
@@ -2757,7 +2757,7 @@ bool LLParser::ParseFunctionHeader(Function *&Fn, bool isDefine) {
// If the alignment was parsed as an attribute, move to the alignment field.
if (FuncAttrs.hasAlignmentAttr()) {
Alignment = FuncAttrs.getAlignment();
- FuncAttrs.removeAlignmentAttr();
+ FuncAttrs.removeAttribute(Attributes::Alignment);
}
// Okay, if we got here, the function is syntactically valid. Convert types
OpenPOWER on IntegriCloud