r247933 - Using MD_invariant_group
Piotr Padlewski via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 17 13:25:46 PDT 2015
Author: prazek
Date: Thu Sep 17 15:25:46 2015
New Revision: 247933
URL: http://llvm.org/viewvc/llvm-project?rev=247933&view=rev
Log:
Using MD_invariant_group
http://reviews.llvm.org/D12927
Modified:
cfe/trunk/lib/CodeGen/CodeGenModule.cpp
Modified: cfe/trunk/lib/CodeGen/CodeGenModule.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CodeGenModule.cpp?rev=247933&r1=247932&r2=247933&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CodeGenModule.cpp (original)
+++ cfe/trunk/lib/CodeGen/CodeGenModule.cpp Thu Sep 17 15:25:46 2015
@@ -524,7 +524,7 @@ void CodeGenModule::DecorateInstructionW
// 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) {
More information about the cfe-commits
mailing list