projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Go bindings: use MDNode::replaceAllUsesWith instead of MDTuple::replaceAllUsesWith.
[oota-llvm.git]
/
bindings
/
go
/
llvm
/
IRBindings.cpp
diff --git
a/bindings/go/llvm/IRBindings.cpp
b/bindings/go/llvm/IRBindings.cpp
index fb451efec520f47644238c96b5e7c4ccfae432f2..fd0cb8006a4fe1b3f359f4448b128310943a35cd 100644
(file)
--- a/
bindings/go/llvm/IRBindings.cpp
+++ b/
bindings/go/llvm/IRBindings.cpp
@@
-86,9
+86,8
@@
void LLVMSetMetadata2(LLVMValueRef Inst, unsigned KindID, LLVMMetadataRef MD) {
}
void LLVMMetadataReplaceAllUsesWith(LLVMMetadataRef MD, LLVMMetadataRef New) {
}
void LLVMMetadataReplaceAllUsesWith(LLVMMetadataRef MD, LLVMMetadataRef New) {
- auto *Node = unwrap<MDTuple>(MD);
- assert(Node->isTemporary() && "Expected temporary node");
- Node->replaceAllUsesWith(unwrap<MDNode>(New));
+ auto *Node = unwrap<MDNode>(MD);
+ Node->replaceAllUsesWith(unwrap<Metadata>(New));
MDNode::deleteTemporary(Node);
}
MDNode::deleteTemporary(Node);
}