diff options
author | Galina Kistanova <gkistanova@gmail.com> | 2011-09-21 23:34:23 +0000 |
---|---|---|
committer | Galina Kistanova <gkistanova@gmail.com> | 2011-09-21 23:34:23 +0000 |
commit | ef01f32d07f4c7ecd9d116be53c5f3de3138f1ae (patch) | |
tree | 36f92d6dacfd6878fdf3d935f42f9fef9009a3a8 /lib/Analysis | |
parent | cccfd194ecf8e1c6fb203ec3f96aca8cfe9e0484 (diff) | |
download | external_llvm-ef01f32d07f4c7ecd9d116be53c5f3de3138f1ae.zip external_llvm-ef01f32d07f4c7ecd9d116be53c5f3de3138f1ae.tar.gz external_llvm-ef01f32d07f4c7ecd9d116be53c5f3de3138f1ae.tar.bz2 |
Fix for DbgInfoPrinter.cpp:174:12: warning: ‘LineNo’ may be used uninitialized in this function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140281 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/DbgInfoPrinter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/DbgInfoPrinter.cpp b/lib/Analysis/DbgInfoPrinter.cpp index b23c351..cd832ab 100644 --- a/lib/Analysis/DbgInfoPrinter.cpp +++ b/lib/Analysis/DbgInfoPrinter.cpp @@ -171,7 +171,7 @@ static bool getLocationInfo(const Value *V, std::string &DisplayName, void PrintDbgInfo::printVariableDeclaration(const Value *V) { std::string DisplayName, File, Directory, Type; - unsigned LineNo; + unsigned LineNo = 0; if (!getLocationInfo(V, DisplayName, Type, LineNo, File, Directory)) return; |