uabelho added a comment.

It crashes on this as well:

  void f(int a[])
  {
      int b = {a[1]};
  }

with

  clang -cc1 foo.c -Weverything

I get

  clang: ../../clang/lib/Analysis/UnsafeBufferUsage.cpp:233: void (anonymous 
namespace)::DeclUseTracker::claimUse(const clang::DeclRefExpr *): Assertion 
`Uses->count(DRE) && "DRE not found or claimed by multiple matchers!"' failed.

But now I will indeed add -Wno-unsafe-buffer-usage. :)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D138253/new/

https://reviews.llvm.org/D138253

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to