[llvm] r225775 - IR/MetadataTest.cpp: Appease msc17 to avoid initializer list.
David Blaikie
dblaikie at gmail.com
Tue Jan 13 08:21:08 PST 2015
On Tue, Jan 13, 2015 at 12:13 AM, NAKAMURA Takumi <geek4civic at gmail.com>
wrote:
> 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 *>());
>
You can use 'None' here to represent the empty ArrayRef, rather than having
to write out the full type/instance.
> MDNode *N = MDTuple::get(Context, Ops);
> EXPECT_EQ(nullptr, N->getOperand(0));
> ASSERT_FALSE(N->isResolved());
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150113/40030f33/attachment.html>
More information about the llvm-commits
mailing list