[all-commits] [llvm/llvm-project] aedea0: Signposts.h - move unnecessary StringRef include d...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Wed Feb 2 07:41:37 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: aedea002b493d17a8f6e5407a4d3f10a54064538
      https://github.com/llvm/llvm-project/commit/aedea002b493d17a8f6e5407a4d3f10a54064538
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
    M llvm/include/llvm/Support/Signposts.h
    M llvm/lib/Support/Signposts.cpp

  Log Message:
  -----------
  Signposts.h - move unnecessary StringRef include down to Signposts.cpp


  Commit: 9031e5113c47b41eb265f954d53efcef5ec626be
      https://github.com/llvm/llvm-project/commit/9031e5113c47b41eb265f954d53efcef5ec626be
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-02-02 (Wed, 02 Feb 2022)

  Changed paths:
    M llvm/tools/llvm-rc/ResourceFileWriter.cpp

  Log Message:
  -----------
  [llvm-rc] Use cast<> instead of dyn_cast<> to avoid dereference of nullptr

The pointer is dereferenced immediately, so assert the cast is correct instead of returning nullptr


Compare: https://github.com/llvm/llvm-project/compare/660ff655c82b...9031e5113c47


More information about the All-commits mailing list