diff options
author | David Blaikie <dblaikie@gmail.com> | 2013-02-04 05:56:36 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2013-02-04 05:56:36 +0000 |
commit | 2811f8ac2828dbc96839f6404142a6513a4e4153 (patch) | |
tree | edc65ba586292ee621037812ba011e2318c60652 /llvm/lib/IR/DebugInfo.cpp | |
parent | ab1e7cac9920f733d5c38b2647f8432d56d7c612 (diff) | |
download | bcm5719-llvm-2811f8ac2828dbc96839f6404142a6513a4e4153.tar.gz bcm5719-llvm-2811f8ac2828dbc96839f6404142a6513a4e4153.zip |
[DebugInfo] remove more node indirection (this time from the subprogram's variable lists)
llvm-svn: 174305
Diffstat (limited to 'llvm/lib/IR/DebugInfo.cpp')
-rw-r--r-- | llvm/lib/IR/DebugInfo.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/IR/DebugInfo.cpp b/llvm/lib/IR/DebugInfo.cpp index ecaab1fd652..a59fdcd4de9 100644 --- a/llvm/lib/IR/DebugInfo.cpp +++ b/llvm/lib/IR/DebugInfo.cpp @@ -593,17 +593,14 @@ unsigned DISubprogram::isOptimized() const { MDNode *DISubprogram::getVariablesNodes() const { if (!DbgNode || DbgNode->getNumOperands() <= 19) return NULL; - if (MDNode *Temp = dyn_cast_or_null<MDNode>(DbgNode->getOperand(19))) - return dyn_cast_or_null<MDNode>(Temp->getOperand(0)); - return NULL; + return dyn_cast_or_null<MDNode>(DbgNode->getOperand(19)); } DIArray DISubprogram::getVariables() const { if (!DbgNode || DbgNode->getNumOperands() <= 19) return DIArray(); if (MDNode *T = dyn_cast_or_null<MDNode>(DbgNode->getOperand(19))) - if (MDNode *A = dyn_cast_or_null<MDNode>(T->getOperand(0))) - return DIArray(A); + return DIArray(T); return DIArray(); } |