summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Vectorize
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-03 11:17:05 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2019-11-03 11:17:05 +0000
commit81ba611e88d9cf31988e84380da98a3bc0b0c138 (patch)
tree0a52893118fa21d1b63e892b7a6dc4106eb970d9 /llvm/lib/Transforms/Vectorize
parent297d96bb603f8a02fa45ef65cec6ca29222e9193 (diff)
downloadbcm5719-llvm-81ba611e88d9cf31988e84380da98a3bc0b0c138.tar.gz
bcm5719-llvm-81ba611e88d9cf31988e84380da98a3bc0b0c138.zip
Ensure VPlanPrinter::Depth is initialized to fix static analyzer warning. NFCI.
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
-rw-r--r--llvm/lib/Transforms/Vectorize/VPlan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 44d8a198f27..6eeec0f21fd 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;
OpenPOWER on IntegriCloud