Using MD_invariant_group

http://reviews.llvm.org/D12927

llvm-svn: 247933
This commit is contained in:
Piotr Padlewski 2015-09-17 20:25:46 +00:00
parent e793f19831
commit b83278687d
1 changed files with 1 additions and 1 deletions

View File

@ -524,7 +524,7 @@ void CodeGenModule::DecorateInstructionWithInvariantGroup(
// Check if we have to wrap MDString in MDNode.
if (!MetaDataNode)
MetaDataNode = llvm::MDNode::get(getLLVMContext(), MD);
I->setMetadata("invariant.group", MetaDataNode);
I->setMetadata(llvm::LLVMContext::MD_invariant_group, MetaDataNode);
}
void CodeGenModule::Error(SourceLocation loc, StringRef message) {