[all-commits] [llvm/llvm-project] 5b72fb: [AST] getDeclLocForCommentSearch - remove dead ret...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Fri Aug 20 04:32:43 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 5b72fb866c16d63a3403848f0a4f04f522da8ba3
      https://github.com/llvm/llvm-project/commit/5b72fb866c16d63a3403848f0a4f04f522da8ba3
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2021-08-20 (Fri, 20 Aug 2021)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp

  Log Message:
  -----------
  [AST] getDeclLocForCommentSearch - remove dead return. NFC.

Don't use an else-block as the previous if-block always returns, and remove the (now more obvious) dead return {}.




More information about the All-commits mailing list