[PATCH] D138253: [-Wunsafe-buffer-usage] NFC: Implement fix-strategies and variable-use-claiming.
Mikael Holmén via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Dec 21 05:39:50 PST 2022
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
More information about the cfe-commits
mailing list