浏览代码

Using MD_invariant_group

http://reviews.llvm.org/D12927

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@247933 91177308-0d34-0410-b5e6-96231b3b80d8
Piotr Padlewski 10 年之前
父节点
当前提交
15522c723b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/CodeGen/CodeGenModule.cpp

+ 1 - 1
lib/CodeGen/CodeGenModule.cpp

@@ -524,7 +524,7 @@ void CodeGenModule::DecorateInstructionWithInvariantGroup(
   // Check if we have to wrap MDString in MDNode.
   // Check if we have to wrap MDString in MDNode.
   if (!MetaDataNode)
   if (!MetaDataNode)
     MetaDataNode = llvm::MDNode::get(getLLVMContext(), MD);
     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) {
 void CodeGenModule::Error(SourceLocation loc, StringRef message) {