MIR Serialization: Serialize the memory operand's noalias metadata node.
llvm-svn: 245246
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index 6be8205..aa30316 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -786,7 +786,10 @@
OS << ", !alias.scope ";
AAInfo.Scope->printAsOperand(OS, MST);
}
- // TODO: Print AA NoAlias metadata.
+ if (AAInfo.NoAlias) {
+ OS << ", !noalias ";
+ AAInfo.NoAlias->printAsOperand(OS, MST);
+ }
// TODO: Print the ranges metadata.
OS << ')';
}