summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRParser/MIParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/MIRParser/MIParser.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRParser/MIParser.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MIRParser/MIParser.cpp b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
index 271f7f08227..57765b5b0cb 100644
--- a/llvm/lib/CodeGen/MIRParser/MIParser.cpp
+++ b/llvm/lib/CodeGen/MIRParser/MIParser.cpp
@@ -1543,11 +1543,16 @@ bool MIParser::parseMachineMemoryOperand(MachineMemOperand *&Dest) {
if (parseMDNode(AAInfo.Scope))
return true;
break;
- // TODO: Parse AA NoAlias metadata.
+ case MIToken::md_noalias:
+ lex();
+ if (parseMDNode(AAInfo.NoAlias))
+ return true;
+ break;
// TODO: Parse the ranges metadata.
// TODO: Report an error on duplicate metadata nodes.
default:
- return error("expected 'align' or '!tbaa' or '!alias.scope'");
+ return error(
+ "expected 'align' or '!tbaa' or '!alias.scope' or '!noalias'");
}
}
if (expectAndConsume(MIToken::rparen))
OpenPOWER on IntegriCloud