summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/lang/cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2019-03-11 10:39:15 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2019-03-11 10:39:15 +0000
commit6ff32e143a64a326c61ee9ad8a61a76fdf5f0d32 (patch)
treecd2fddd311814a6c90701303c7fbc1da224d2629 /lldb/packages/Python/lldbsuite/test/lang/cpp
parent7bfa8ea9de45f51d77a2ee5d90f159e012627a9f (diff)
downloadbcm5719-llvm-6ff32e143a64a326c61ee9ad8a61a76fdf5f0d32.tar.gz
bcm5719-llvm-6ff32e143a64a326c61ee9ad8a61a76fdf5f0d32.zip
[MIPS GlobalISel] Silence uninitialized variable warning
The control flow here cannot ever use the uninitialized value, but it's too hard for the compiler to figure that out. Clang warns: llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:2600:28: error: variable 'CarrySum' is used uninitialized whenever 'for' loop exits because its condition is false [-Werror,-Wsometimes-uninitialized] for (unsigned i = 2; i < Factors.size(); ++i) ^~~~~~~~~~~~~~~~~~ llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:2604:26: note: uninitialized use occurs here CarrySumPrevDstIdx = CarrySum; ^~~~~~~~ llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:2600:28: note: remove the condition if it is always true for (unsigned i = 2; i < Factors.size(); ++i) ^~~~~~~~~~~~~~~~~~ llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp:2583:22: note: initialize the variable 'CarrySum' to silence this warning unsigned CarrySum; ^ = 0 llvm-svn: 355818
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lang/cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud