diff --git a/include/llvm/Object/ELFObjectFile.h b/include/llvm/Object/ELFObjectFile.h index 54aa99c6263..4676ae8bdbc 100644 --- a/include/llvm/Object/ELFObjectFile.h +++ b/include/llvm/Object/ELFObjectFile.h @@ -934,7 +934,7 @@ inline std::error_code getELFRelocationAddend(const RelocationRef R, } inline std::pair -getELFDynamicSymbolIterators(SymbolicFile *Obj) { +getELFDynamicSymbolIterators(const SymbolicFile *Obj) { return cast(Obj)->getELFDynamicSymbolIterators(); }