From 81ba611e88d9cf31988e84380da98a3bc0b0c138 Mon Sep 17 00:00:00 2001 From: Simon Pilgrim Date: Sun, 3 Nov 2019 11:17:05 +0000 Subject: [PATCH] Ensure VPlanPrinter::Depth is initialized to fix static analyzer warning. NFCI. --- llvm/lib/Transforms/Vectorize/VPlan.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h index 44d8a198f27e..6eeec0f21fd0 100644 --- a/llvm/lib/Transforms/Vectorize/VPlan.h +++ b/llvm/lib/Transforms/Vectorize/VPlan.h @@ -1267,7 +1267,7 @@ class VPlanPrinter { private: raw_ostream &OS; VPlan &Plan; - unsigned Depth; + unsigned Depth = 0; unsigned TabWidth = 2; std::string Indent; unsigned BID = 0;