[all-commits] [llvm/llvm-project] 76a1be: AssumeBundleQueries.cpp - don't dereference a dyn_...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sun Jun 6 07:25:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 76a1be05fa00638532bfda02839f1847ab15ede7
      https://github.com/llvm/llvm-project/commit/76a1be05fa00638532bfda02839f1847ab15ede7
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M llvm/lib/Analysis/AssumeBundleQueries.cpp

  Log Message:
  -----------
  AssumeBundleQueries.cpp - don't dereference a dyn_cast<> result. NFCI.

Use cast<> instead which will assert that the cast is correct and not just return null - the match() should have already failed if the cast isn't valid anyhow.

Fixes static analysis warning.


  Commit: 0f938a6ed8f43a8b3923208131ce9c28f723d45f
      https://github.com/llvm/llvm-project/commit/0f938a6ed8f43a8b3923208131ce9c28f723d45f
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-06-06 (Sun, 06 Jun 2021)

  Changed paths:
    M llvm/lib/Target/X86/AsmParser/X86Operand.h

  Log Message:
  -----------
  X86Operand.h - fix uninitialized variable warnings in constructor. NFCI.


Compare: https://github.com/llvm/llvm-project/compare/d466ca087aae...0f938a6ed8f4


More information about the All-commits mailing list