[all-commits] [llvm/llvm-project] 5bf45e: BitcodeReader::popValue - pass SmallVectorImpl<> a...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Oct 30 07:33:51 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 5bf45ee1568e846291565ef6a16eca53e60b39ec
      https://github.com/llvm/llvm-project/commit/5bf45ee1568e846291565ef6a16eca53e60b39ec
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-30 (Fri, 30 Oct 2020)

  Changed paths:
    M llvm/lib/Bitcode/Reader/BitcodeReader.cpp

  Log Message:
  -----------
  BitcodeReader::popValue - pass SmallVectorImpl<> as const reference. NFCI.

Fixes cppcheck warning.


  Commit: 0ff1ab42f23d4efc043821ec447da5e553cd893e
      https://github.com/llvm/llvm-project/commit/0ff1ab42f23d4efc043821ec447da5e553cd893e
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-10-30 (Fri, 30 Oct 2020)

  Changed paths:
    M llvm/lib/Target/AArch64/AArch64StackTagging.cpp

  Log Message:
  -----------
  Use cast<> instead of dyn_cast<> as we dereference the pointer immediately. NFCI.

Fix clang static analyzer warning - we know that the arg should be ConstantInt and we're better off relying on cast<> asserting on failure rather than a null dereference crash.


Compare: https://github.com/llvm/llvm-project/compare/71bf9f07d514...0ff1ab42f23d


More information about the All-commits mailing list