[all-commits] [llvm/llvm-project] 13ea36: Fix UPCAddressofArraySubscriptGadget::getClaimedVa...

juan.vazquez via All-commits all-commits at lists.llvm.org
Tue Apr 16 12:43:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 13ea36db166b7007f8b1e84e0827faaf24eb448e
      https://github.com/llvm/llvm-project/commit/13ea36db166b7007f8b1e84e0827faaf24eb448e
  Author: juan.vazquez <juan.vazquez.test at gmail.com>
  Date:   2024-04-16 (Tue, 16 Apr 2024)

  Changed paths:
    M clang/lib/Analysis/UnsafeBufferUsage.cpp
    A clang/test/SemaCXX/warn-unsafe-buffer-usage-suggestions-crashes.cpp

  Log Message:
  -----------
  Fix UPCAddressofArraySubscriptGadget::getClaimedVarUseSites() (#88406)

UPCAddressofArraySubscriptGadget::getClaimedVarUseSites should skip
parentheses when accessing the DeclRefExpr, otherwise a crash happens
with parenthesized references.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list