[llvm] [BOLT][RISCV] Carry-over annotations when fixing calls (PR #66763)

Vladislav Khmelevsky via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 19 04:56:02 PDT 2023


================
@@ -39,8 +41,19 @@ void FixRISCVCallsPass::runOnFunction(BinaryFunction &BF) {
         auto *Target = MIB->getTargetSymbol(*II);
         assert(Target && "Cannot find call target");
 
+        auto OldCall = *NextII;
----------------
yota9 wrote:

We've got a policy to not using auto if it is not necessary, please minimise their usage

https://github.com/llvm/llvm-project/pull/66763


More information about the llvm-commits mailing list