diff options
author | Vasileios Porpodas <vporpodas@google.com> | 2022-11-28 14:43:11 -0800 |
---|---|---|
committer | Vasileios Porpodas <vporpodas@google.com> | 2022-12-12 13:33:05 -0800 |
commit | 06911ba6ea1e552d3bcaed2728c92a9aa6cbf4d2 (patch) | |
tree | bf4f7cf10a99e47d1867a88bb794c13f986b54c3 /llvm/unittests/Analysis/ValueTrackingTest.cpp | |
parent | 816b5e546c6553afd463f9630b248a17702700c9 (diff) | |
download | llvm-06911ba6ea1e552d3bcaed2728c92a9aa6cbf4d2.zip llvm-06911ba6ea1e552d3bcaed2728c92a9aa6cbf4d2.tar.gz llvm-06911ba6ea1e552d3bcaed2728c92a9aa6cbf4d2.tar.bz2 |
[NFC] Cleanup: Replaces BB->getInstList().insert() with I->insertAt().
This is part of a series of cleanup patches towards making BasicBlock::getInstList() private.
Differential Revision: https://reviews.llvm.org/D138877
Diffstat (limited to 'llvm/unittests/Analysis/ValueTrackingTest.cpp')
-rw-r--r-- | llvm/unittests/Analysis/ValueTrackingTest.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/Analysis/ValueTrackingTest.cpp b/llvm/unittests/Analysis/ValueTrackingTest.cpp index 9bf9259..2e5270e 100644 --- a/llvm/unittests/Analysis/ValueTrackingTest.cpp +++ b/llvm/unittests/Analysis/ValueTrackingTest.cpp @@ -1624,7 +1624,7 @@ TEST_F(ComputeKnownBitsTest, ComputeKnownBitsUnknownVScale) { EXPECT_EQ(Known.Zero.getZExtValue(), 0u); BasicBlock *BB = BasicBlock::Create(Context); - BB->getInstList().push_back(CI); + CI->insertAt(BB, BB->end()); Known = computeKnownBits(CI, M.getDataLayout(), /* Depth */ 0); // There is no parent function so we cannot look up the vscale_range // attribute to determine the number of bits. |