mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-07 04:46:52 +00:00
Simplify this unittest.
Thanks to dblaikie for the suggestion! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@260125 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
60a32b5936
commit
4ebe0588be
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user