diff options
author | Adrian Prantl <aprantl@apple.com> | 2016-02-08 19:13:15 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2016-02-08 19:13:15 +0000 |
commit | 817c47bb42368cf5d158db92128b8dbf776a4962 (patch) | |
tree | f64668f374bd56b58e38cc0a741b95d0523d4e0c /llvm | |
parent | fc8c5048dcc7bac257aaa8f4424328478846edbc (diff) | |
download | bcm5719-llvm-817c47bb42368cf5d158db92128b8dbf776a4962.tar.gz bcm5719-llvm-817c47bb42368cf5d158db92128b8dbf776a4962.zip |
Simplify this unittest.
Thanks to dblaikie for the suggestion!
llvm-svn: 260125
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/unittests/IR/MetadataTest.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/unittests/IR/MetadataTest.cpp b/llvm/unittests/IR/MetadataTest.cpp index b878f2c9062..8316c7f4190 100644 --- a/llvm/unittests/IR/MetadataTest.cpp +++ b/llvm/unittests/IR/MetadataTest.cpp @@ -2078,12 +2078,9 @@ TEST_F(ValueAsMetadataTest, TempTempReplacement) { ConstantAsMetadata *CI = ConstantAsMetadata::get( ConstantInt::get(getGlobalContext(), APInt(8, 0))); - Metadata *Ops1[] = {CI}; auto Temp1 = MDTuple::getTemporary(Context, None); - auto Temp2 = MDTuple::getTemporary(Context, Ops1); - - Metadata *Ops2[] = {Temp1.get()}; - auto *N = MDTuple::get(Context, Ops2); + auto Temp2 = MDTuple::getTemporary(Context, {CI}); + auto *N = MDTuple::get(Context, {Temp1.get()}); // Test replacing a temporary node with another temporary node. Temp1->replaceAllUsesWith(Temp2.get()); |