[llvm-commits] [llvm] r68668 - /llvm/trunk/unittests/VMCore/MetadataTest.cpp
Nick Lewycky
nicholas at mxc.ca
Wed Apr 8 20:10:04 PDT 2009
Author: nicholas
Date: Wed Apr 8 22:10:03 2009
New Revision: 68668
URL: http://llvm.org/viewvc/llvm-project?rev=68668&view=rev
Log:
Fix pointer casting problem.
Modified:
llvm/trunk/unittests/VMCore/MetadataTest.cpp
Modified: llvm/trunk/unittests/VMCore/MetadataTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/VMCore/MetadataTest.cpp?rev=68668&r1=68667&r2=68668&view=diff
==============================================================================
--- llvm/trunk/unittests/VMCore/MetadataTest.cpp (original)
+++ llvm/trunk/unittests/VMCore/MetadataTest.cpp Wed Apr 8 22:10:03 2009
@@ -73,7 +73,8 @@
V.push_back(s2);
MDNode *n1 = MDNode::get(&V[0], 3);
- MDNode *n2 = MDNode::get((Constant**)&n1, 1);
+ Constant *const c1 = n1;
+ MDNode *n2 = MDNode::get(&c1, 1);
MDNode *n3 = MDNode::get(&V[0], 3);
EXPECT_NE(n1, n2);
EXPECT_EQ(n1, n3);
More information about the llvm-commits
mailing list