aboutsummaryrefslogtreecommitdiff
path: root/unittests
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2009-09-02 21:22:09 +0000
committerDevang Patel <dpatel@apple.com>2009-09-02 21:22:09 +0000
commitd9489cbb0cf933da9e2154a5336533d6254a5c30 (patch)
tree2095f4e178aa362d18c25b07a42f5209bead3a9d /unittests
parent69d1c1aebf009e58157e233cd7f2338e654e8d05 (diff)
Use CallbackVH, instead of WeakVH, to hold MDNode elements.
Use FoldingSetNode to unique MDNodes in a context. Use CallbackVH hooks to update context's MDNodeSet appropriately. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests')
-rw-r--r--unittests/VMCore/MetadataTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/unittests/VMCore/MetadataTest.cpp b/unittests/VMCore/MetadataTest.cpp
index f174fb65b8..cdf5a6e6b9 100644
--- a/unittests/VMCore/MetadataTest.cpp
+++ b/unittests/VMCore/MetadataTest.cpp
@@ -85,7 +85,7 @@ TEST(MDNodeTest, Simple) {
MDNode *n2 = MDNode::get(Context, &c1, 1);
MDNode *n3 = MDNode::get(Context, &V[0], 3);
EXPECT_NE(n1, n2);
- // FIXME: Enable uniqueness test. EXPECT_EQ(n1, n3);
+ EXPECT_EQ(n1, n3);
EXPECT_EQ(3u, n1->getNumElements());
EXPECT_EQ(s1, n1->getElement(0));