<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jan 13, 2015 at 12:13 AM, NAKAMURA Takumi <span dir="ltr"><<a href="mailto:geek4civic@gmail.com" target="_blank">geek4civic@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Author: chapuni<br>
Date: Tue Jan 13 02:13:46 2015<br>
New Revision: 225775<br>
<br>
URL: <a href="http://llvm.org/viewvc/llvm-project?rev=225775&view=rev" target="_blank">http://llvm.org/viewvc/llvm-project?rev=225775&view=rev</a><br>
Log:<br>
IR/MetadataTest.cpp: Appease msc17 to avoid initializer list.<br>
<br>
Modified:<br>
llvm/trunk/unittests/IR/MetadataTest.cpp<br>
<br>
Modified: llvm/trunk/unittests/IR/MetadataTest.cpp<br>
URL: <a href="http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/MetadataTest.cpp?rev=225775&r1=225774&r2=225775&view=diff" target="_blank">http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/MetadataTest.cpp?rev=225775&r1=225774&r2=225775&view=diff</a><br>
==============================================================================<br>
--- llvm/trunk/unittests/IR/MetadataTest.cpp (original)<br>
+++ llvm/trunk/unittests/IR/MetadataTest.cpp Tue Jan 13 02:13:46 2015<br>
@@ -370,7 +370,7 @@ TEST_F(MDNodeTest, replaceResolvedOperan<br>
std::unique_ptr<MDNodeFwdDecl> Temp(MDNodeFwdDecl::get(Context, None));<br>
Metadata *Ops[] = {nullptr, Temp.get()};<br>
<br>
- MDNode *Empty = MDTuple::get(Context, {});<br>
+ MDNode *Empty = MDTuple::get(Context, ArrayRef<Metadata *>());<br></blockquote><div><br>You can use 'None' here to represent the empty ArrayRef, rather than having to write out the full type/instance.<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
MDNode *N = MDTuple::get(Context, Ops);<br>
EXPECT_EQ(nullptr, N->getOperand(0));<br>
ASSERT_FALSE(N->isResolved());<br>
<br>
<br>
_______________________________________________<br>
llvm-commits mailing list<br>
<a href="mailto:llvm-commits@cs.uiuc.edu">llvm-commits@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits</a><br>
</blockquote></div><br></div></div>