From a0b8ab1ba3165d468792cf0032fce274c7d624e1 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 26 Apr 2022 23:17:26 +0000 Subject: [PATCH] [BOLT][NFC] Fix warning for unqualified call to std::move Fixes warning from RetpolineInsertion.cpp:171:44: warning: unqualified call to std::move [-Wunqualified-std-cast-call] Reviewed By: maksfb Differential Revision: https://reviews.llvm.org/D124482 --- bolt/lib/Passes/RetpolineInsertion.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bolt/lib/Passes/RetpolineInsertion.cpp b/bolt/lib/Passes/RetpolineInsertion.cpp index 985c8ef63732..c91c185a0665 100644 --- a/bolt/lib/Passes/RetpolineInsertion.cpp +++ b/bolt/lib/Passes/RetpolineInsertion.cpp @@ -168,7 +168,7 @@ BinaryFunction *createNewRetpoline(BinaryContext &BC, MCInst Return; MIB.createReturn(Return); BB2.addInstruction(Return); - NewRetpoline->insertBasicBlocks(nullptr, move(NewBlocks), + NewRetpoline->insertBasicBlocks(nullptr, std::move(NewBlocks), /* UpdateLayout */ true, /* UpdateCFIState */ false);