Skip to content

Commit

Permalink
Fix "use of uninitialized variable" static analyzer warning. NFCI.
Browse files Browse the repository at this point in the history
  • Loading branch information
RKSimon committed Jan 6, 2020
1 parent 34817e0 commit ea5abf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/LiveDebugVariables.cpp
Expand Up @@ -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();
Expand Down

0 comments on commit ea5abf1

Please sign in to comment.