[all-commits] [llvm/llvm-project] 8fd62e: [-Wunsafe-buffer-usage] Suppress an assertion for ...
NoQ via All-commits
all-commits at lists.llvm.org
Tue Dec 20 16:05:28 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8fd62e70cde135943e54d80851984988cb00000a
https://github.com/llvm/llvm-project/commit/8fd62e70cde135943e54d80851984988cb00000a
Author: Artem Dergachev <adergachev at apple.com>
Date: 2022-12-20 (Tue, 20 Dec 2022)
Changed paths:
M clang/lib/Analysis/UnsafeBufferUsage.cpp
A clang/test/SemaCXX/warn-unsafe-buffer-usage-crashes.c
Log Message:
-----------
[-Wunsafe-buffer-usage] Suppress an assertion for visiting VarDecl twice.
The assertion doesn't seem to hold due to ASTMatchers traversing code
inside GNU StmtExpr twice. This can screw up our algorithm's invariants.
We need a further investigation to properly fix this issue, but for now
let's avoid the crash.
More information about the All-commits
mailing list