[all-commits] [llvm/llvm-project] 41751b: [Clang][ASan] Correct AsanDtorKindToString to retu...

Kostya Kortchinsky via All-commits all-commits at lists.llvm.org
Thu Feb 25 15:33:02 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 41751b637317bd9c97b0506ba77075694cd2d9cf
      https://github.com/llvm/llvm-project/commit/41751b637317bd9c97b0506ba77075694cd2d9cf
  Author: Kostya Kortchinsky <kostyak at google.com>
  Date:   2021-02-25 (Thu, 25 Feb 2021)

  Changed paths:
    M clang/lib/Basic/Sanitizers.cpp

  Log Message:
  -----------
  [Clang][ASan] Correct AsanDtorKindToString to return non-void in default case

Post D96572, a warning started showing up for me:
`clang/lib/Basic/Sanitizers.cpp:73:1: warning: control reaches end of non-void function [-Wreturn-type]`

So this adds a default to the case to return invalid, which seems appropriate,
and appears to correct the issue.

Differential Revision: https://reviews.llvm.org/D97496




More information about the All-commits mailing list