mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 08:17:40 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user