Ver código fonte

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 anos atrás
pai
commit
15522c723b
1 arquivos alterados com 1 adições e 1 exclusões
  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.
   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) {