[all-commits] [llvm/llvm-project] 054704: [SemaCXX] Fix false positive of -Wuninitialized-co...
ZequanWu via All-commits
all-commits at lists.llvm.org
Mon Jul 6 10:52:24 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 054704082b461418d3dac3a379792cdaf52d40b3
https://github.com/llvm/llvm-project/commit/054704082b461418d3dac3a379792cdaf52d40b3
Author: Zequan Wu <zequanwu at google.com>
Date: 2020-07-06 (Mon, 06 Jul 2020)
Changed paths:
M clang/lib/Analysis/UninitializedValues.cpp
M clang/test/SemaCXX/warn-uninitialized-const-reference.cpp
Log Message:
-----------
[SemaCXX] Fix false positive of -Wuninitialized-const-reference in empty function body.
Summary:
Some libraries use empty function to ignore unused variable warnings, which gets a new warning from `-Wuninitialized-const-reference`, discussed here https://reviews.llvm.org/D79895#2107604.
This patch should fix that.
Reviewers: hans, nick, aaron.ballman
Reviewed By: aaron.ballman
Subscribers: aaron.ballman, riccibruno, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D82425
More information about the All-commits
mailing list