projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Push LLVMContexts through the IntegerType APIs.
[oota-llvm.git]
/
lib
/
VMCore
/
ConstantsContext.h
diff --git
a/lib/VMCore/ConstantsContext.h
b/lib/VMCore/ConstantsContext.h
index f1d4b25e1bcdd4b90bea741533b40bc88fb61500..be75f11e19c1898df0eafd99adb48256afa9d9f3 100644
(file)
--- a/
lib/VMCore/ConstantsContext.h
+++ b/
lib/VMCore/ConstantsContext.h
@@
-446,7
+446,7
@@
struct ConstantCreator<ConstantAggregateZero, Type, ValType> {
template<>
struct ConstantCreator<MDNode, Type, std::vector<Value*> > {
static MDNode *create(const Type* Ty, const std::vector<Value*> &V) {
- return new MDNode(&V[0], V.size());
+ return new MDNode(
Ty->getContext(),
&V[0], V.size());
}
};