diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-10-28 02:57:26 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-10-28 02:57:26 +0000 |
commit | ff468a5e0b9757257a653d1c0c4e94af242d78c1 (patch) | |
tree | 1b977b519e0a0db3272942fa7c074c371fc47c1e /llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | |
parent | 9ccce99e1d02975afe3c4d4cf2c154c6f154f3ff (diff) | |
download | bcm5719-llvm-ff468a5e0b9757257a653d1c0c4e94af242d78c1.tar.gz bcm5719-llvm-ff468a5e0b9757257a653d1c0c4e94af242d78c1.zip |
Minimize the scope of some variables, NFC.
llvm-svn: 220759
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp index 68f10275dc6..f9ef6d09ff5 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp @@ -795,14 +795,14 @@ void DwarfDebug::collectVariableInfoFromMMITable( if (!VI.Var) continue; Processed.insert(VI.Var); - DIVariable DV(VI.Var); - DIExpression Expr(VI.Expr); LexicalScope *Scope = LScopes.findLexicalScope(VI.Loc); // If variable scope is not found then skip this variable. if (!Scope) continue; + DIVariable DV(VI.Var); + DIExpression Expr(VI.Expr); ensureAbstractVariableIsCreatedIfScoped(DV, Scope->getScopeNode()); ConcreteVariables.push_back(make_unique<DbgVariable>(DV, Expr, this)); DbgVariable *RegVar = ConcreteVariables.back().get(); |