[clang] 6fb70c8 - [Analysis] Fix -Wrange-loop-analysis after D69876
Fangrui Song via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 18:05:20 PST 2020
Author: Fangrui Song
Date: 2020-02-25T18:05:09-08:00
New Revision: 6fb70c87251708af8fc27b501fd79e26162f7e65
URL: https://github.com/llvm/llvm-project/commit/6fb70c87251708af8fc27b501fd79e26162f7e65
DIFF: https://github.com/llvm/llvm-project/commit/6fb70c87251708af8fc27b501fd79e26162f7e65.diff
LOG: [Analysis] Fix -Wrange-loop-analysis after D69876
Added:
Modified:
clang/lib/Analysis/UninitializedValues.cpp
Removed:
################################################################################
diff --git a/clang/lib/Analysis/UninitializedValues.cpp b/clang/lib/Analysis/UninitializedValues.cpp
index a4a900c8146a..16d17de599f2 100644
--- a/clang/lib/Analysis/UninitializedValues.cpp
+++ b/clang/lib/Analysis/UninitializedValues.cpp
@@ -766,7 +766,7 @@ void TransferFunctions::VisitGCCAsmStmt(GCCAsmStmt *as) {
if (!as->isAsmGoto())
return;
- for (const auto &o : as->outputs())
+ for (const Expr *o : as->outputs())
if (const VarDecl *VD = findVar(o).getDecl())
vals[VD] = Initialized;
}
More information about the cfe-commits
mailing list