From: Piotr Padlewski Date: Thu, 17 Sep 2015 20:25:46 +0000 (+0000) Subject: Using MD_invariant_group X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=15522c723b52d7843fa813ff60f8db3a66b40bcd;p=clang 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 --- diff --git a/lib/CodeGen/CodeGenModule.cpp b/lib/CodeGen/CodeGenModule.cpp index 34eb06d720..00121072dd 100644 --- a/lib/CodeGen/CodeGenModule.cpp +++ b/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) {