Author: Georgii Rymar Date: 2021-01-12T13:17:59+03:00 New Revision: 891b4873c129e27755e90a9b8954b9f0d0e7c5a4
URL: https://github.com/llvm/llvm-project/commit/891b4873c129e27755e90a9b8954b9f0d0e7c5a4 DIFF: https://github.com/llvm/llvm-project/commit/891b4873c129e27755e90a9b8954b9f0d0e7c5a4.diff LOG: [llvm-readobj] - One more attempt to fix BB. Add `this->` for `W`, which is the member of `ObjDumper` An example of error: readobj/ELFDumper.cpp:738:13: error: use of undeclared identifier 'W' assert(&W.getOStream() == &llvm::fouts()); Added: Modified: llvm/tools/llvm-readobj/ELFDumper.cpp Removed: ################################################################################ diff --git a/llvm/tools/llvm-readobj/ELFDumper.cpp b/llvm/tools/llvm-readobj/ELFDumper.cpp index d18e1d416278..5e27a14d0475 100644 --- a/llvm/tools/llvm-readobj/ELFDumper.cpp +++ b/llvm/tools/llvm-readobj/ELFDumper.cpp @@ -735,7 +735,7 @@ template <typename ELFT> class GNUELFDumper : public ELFDumper<ELFT> { GNUELFDumper(const object::ELFObjectFile<ELFT> &ObjF, ScopedPrinter &Writer) : ELFDumper<ELFT>(ObjF, Writer), OS(static_cast<formatted_raw_ostream &>(Writer.getOStream())) { - assert(&W.getOStream() == &llvm::fouts()); + assert(&this->W.getOStream() == &llvm::fouts()); } void printFileHeaders() override; _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits