forked from OSchip/llvm-project
Using MD_invariant_group
http://reviews.llvm.org/D12927 llvm-svn: 247933
This commit is contained in:
parent
e793f19831
commit
b83278687d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue