[llvm] r225775 - IR/MetadataTest.cpp: Appease msc17 to avoid initializer list.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Jan 13 00:13:46 PST 2015
Author: chapuni
Date: Tue Jan 13 02:13:46 2015
New Revision: 225775
URL: http://llvm.org/viewvc/llvm-project?rev=225775&view=rev
Log:
IR/MetadataTest.cpp: Appease msc17 to avoid initializer list.
Modified:
llvm/trunk/unittests/IR/MetadataTest.cpp
Modified: llvm/trunk/unittests/IR/MetadataTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/MetadataTest.cpp?rev=225775&r1=225774&r2=225775&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/MetadataTest.cpp (original)
+++ llvm/trunk/unittests/IR/MetadataTest.cpp Tue Jan 13 02:13:46 2015
@@ -370,7 +370,7 @@ TEST_F(MDNodeTest, replaceResolvedOperan
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());
More information about the llvm-commits
mailing list