IR/MetadataTest.cpp: Appease msc17 to avoid initializer list.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 13 Jan 2015 08:13:46 +0000 (08:13 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 13 Jan 2015 08:13:46 +0000 (08:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225775 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/IR/MetadataTest.cpp

index d07199c..9f5d133 100644 (file)
@@ -370,7 +370,7 @@ TEST_F(MDNodeTest, replaceResolvedOperand) {
   std::unique_ptr<MDNodeFwdDecl> Temp(MDNodeFwdDecl::get(Context, None));
   Metadata *Ops[] = {nullptr, Temp.get()};
 
-  MDNode *Empty = MDTuple::get(Context, {});
+  MDNode *Empty = MDTuple::get(Context, ArrayRef<Metadata *>());
   MDNode *N = MDTuple::get(Context, Ops);
   EXPECT_EQ(nullptr, N->getOperand(0));
   ASSERT_FALSE(N->isResolved());