summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorIgor Laevsky <igmyrj@gmail.com>2015-05-08 13:17:22 +0000
committerIgor Laevsky <igmyrj@gmail.com>2015-05-08 13:17:22 +0000
commit9d3932bf967214c15161c26380dbfb99f50fe2a7 (patch)
treeeaa8fc57c42735cdcd1ae48bfac6eedd0e44ae73 /llvm/lib/CodeGen
parent531a656cf01fe9cd4bc78f3a4411f1acff8f2347 (diff)
downloadbcm5719-llvm-9d3932bf967214c15161c26380dbfb99f50fe2a7.tar.gz
bcm5719-llvm-9d3932bf967214c15161c26380dbfb99f50fe2a7.zip
Fix coding standart based on post submit comments.
Differential Revision: http://reviews.llvm.org/D7760 llvm-svn: 236849
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index f0a4c867f8c..52d12fcea31 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -955,18 +955,18 @@ void SelectionDAGBuilder::resolveDanglingDebugInfo(const Value *V,
/// emit CopyFromReg of the specified type Ty. Return empty SDValue() otherwise.
SDValue SelectionDAGBuilder::getCopyFromRegs(const Value *V, Type *Ty) {
DenseMap<const Value *, unsigned>::iterator It = FuncInfo.ValueMap.find(V);
- SDValue res;
+ SDValue Result;
if (It != FuncInfo.ValueMap.end()) {
unsigned InReg = It->second;
RegsForValue RFV(*DAG.getContext(), DAG.getTargetLoweringInfo(), InReg,
Ty);
SDValue Chain = DAG.getEntryNode();
- res = RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V);
- resolveDanglingDebugInfo(V, res);
+ Result = RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V);
+ resolveDanglingDebugInfo(V, Result);
}
- return res;
+ return Result;
}
/// getValue - Return an SDValue for the given Value.
OpenPOWER on IntegriCloud