summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-10-28 02:57:26 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-10-28 02:57:26 +0000
commitff468a5e0b9757257a653d1c0c4e94af242d78c1 (patch)
tree1b977b519e0a0db3272942fa7c074c371fc47c1e /llvm/lib
parent9ccce99e1d02975afe3c4d4cf2c154c6f154f3ff (diff)
downloadbcm5719-llvm-ff468a5e0b9757257a653d1c0c4e94af242d78c1.tar.gz
bcm5719-llvm-ff468a5e0b9757257a653d1c0c4e94af242d78c1.zip
Minimize the scope of some variables, NFC.
llvm-svn: 220759
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp4
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();
OpenPOWER on IntegriCloud