mehdi_amini added inline comments. ================ Comment at: llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp:423 + +class AARGetter { + FunctionAnalysisManager &AM; ---------------- Can't you do it with a lambda? https://reviews.llvm.org/D33525