[all-commits] [llvm/llvm-project] 7109fc: Don't dereference from a dyn_cast<>. NFCI.

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Sep 14 05:12:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 7109fc9e42e6b9a56497dcc6a25228d818af4f38
      https://github.com/llvm/llvm-project/commit/7109fc9e42e6b9a56497dcc6a25228d818af4f38
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2020-09-14 (Mon, 14 Sep 2020)

  Changed paths:
    M llvm/lib/Target/AVR/AsmParser/AVRAsmParser.cpp

  Log Message:
  -----------
  Don't dereference from a dyn_cast<>. NFCI.

Use cast<> instead which will assert if it fails and not just return null.

Fixes clang static analyzer warning.




More information about the All-commits mailing list