diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-01-06 16:15:17 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2020-01-06 16:36:56 +0000 |
commit | ea5abf14530634d05b9d1dc6d5d7d5f7934f0ea3 (patch) | |
tree | 3ddaebe1eefb650be3e9297224a7104260dc4b9f /llvm/lib/CodeGen/LiveDebugVariables.cpp | |
parent | 34817e04feeb00dcd0515e5810218587438bd5a8 (diff) | |
download | llvm-ea5abf14530634d05b9d1dc6d5d7d5f7934f0ea3.zip llvm-ea5abf14530634d05b9d1dc6d5d7d5f7934f0ea3.tar.gz llvm-ea5abf14530634d05b9d1dc6d5d7d5f7934f0ea3.tar.bz2 |
Fix "use of uninitialized variable" static analyzer warning. NFCI.
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 254503c..2cc547a 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -506,7 +506,7 @@ static void printExtendedName(raw_ostream &OS, const DINode *Node, const DILocation *DL) { const LLVMContext &Ctx = Node->getContext(); StringRef Res; - unsigned Line; + unsigned Line = 0; if (const auto *V = dyn_cast<const DILocalVariable>(Node)) { Res = V->getName(); Line = V->getLine(); |