diff options
author | Devang Patel <dpatel@apple.com> | 2009-07-23 01:07:34 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2009-07-23 01:07:34 +0000 |
commit | 104cf9e02b0ed94d4173869a598af6c6972a8660 (patch) | |
tree | 424e9727423125da907cebf5f0ac9bc19d47e9fd /lib/VMCore/LLVMContextImpl.cpp | |
parent | 0aaf4e91c2961585c160af0cc87f040301aafbd2 (diff) | |
download | llvm-104cf9e02b0ed94d4173869a598af6c6972a8660.tar.gz llvm-104cf9e02b0ed94d4173869a598af6c6972a8660.tar.bz2 llvm-104cf9e02b0ed94d4173869a598af6c6972a8660.tar.xz |
Derive MDNode from MetadataBase instead of Constant. Emit MDNodes into METADATA_BLOCK in bitcode file.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/LLVMContextImpl.cpp')
-rw-r--r-- | lib/VMCore/LLVMContextImpl.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/LLVMContextImpl.cpp b/lib/VMCore/LLVMContextImpl.cpp index 5441f1ab88..8ad46a040c 100644 --- a/lib/VMCore/LLVMContextImpl.cpp +++ b/lib/VMCore/LLVMContextImpl.cpp @@ -420,7 +420,7 @@ MDNode *LLVMContextImpl::getMDNode(Value*const* Vals, unsigned NumVals) { N = MDNodeSet.FindNodeOrInsertPos(ID, InsertPoint); if (!N) { // InsertPoint will have been set by the FindNodeOrInsertPos call. - N = new(0) MDNode(Vals, NumVals); + N = new MDNode(Vals, NumVals); MDNodeSet.InsertNode(N, InsertPoint); } } |