[PATCH] D12927: Using MD_invariant_group
Piotr Padlewski via cfe-commits
cfe-commits at lists.llvm.org
Thu Sep 17 00:37:32 PDT 2015
Prazek created this revision.
Prazek added reviewers: rsmith, nlewycky, majnemer.
Prazek added a subscriber: cfe-commits.
Using changes from http://reviews.llvm.org/D12926
http://reviews.llvm.org/D12927
Files:
lib/CodeGen/CodeGenModule.cpp
Index: lib/CodeGen/CodeGenModule.cpp
===================================================================
--- lib/CodeGen/CodeGenModule.cpp
+++ lib/CodeGen/CodeGenModule.cpp
@@ -524,7 +524,7 @@
// 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) {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D12927.34969.patch
Type: text/x-patch
Size: 524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150917/97c98b76/attachment.bin>
More information about the cfe-commits
mailing list