mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-01 13:11:39 +01:00
Fix coding standart based on post submit comments.
Differential Revision: http://reviews.llvm.org/D7760 llvm-svn: 236849
This commit is contained in:
parent
a17eff60d8
commit
ef0cc408c0
@ -955,18 +955,18 @@ void SelectionDAGBuilder::resolveDanglingDebugInfo(const Value *V,
|
|||||||
/// emit CopyFromReg of the specified type Ty. Return empty SDValue() otherwise.
|
/// emit CopyFromReg of the specified type Ty. Return empty SDValue() otherwise.
|
||||||
SDValue SelectionDAGBuilder::getCopyFromRegs(const Value *V, Type *Ty) {
|
SDValue SelectionDAGBuilder::getCopyFromRegs(const Value *V, Type *Ty) {
|
||||||
DenseMap<const Value *, unsigned>::iterator It = FuncInfo.ValueMap.find(V);
|
DenseMap<const Value *, unsigned>::iterator It = FuncInfo.ValueMap.find(V);
|
||||||
SDValue res;
|
SDValue Result;
|
||||||
|
|
||||||
if (It != FuncInfo.ValueMap.end()) {
|
if (It != FuncInfo.ValueMap.end()) {
|
||||||
unsigned InReg = It->second;
|
unsigned InReg = It->second;
|
||||||
RegsForValue RFV(*DAG.getContext(), DAG.getTargetLoweringInfo(), InReg,
|
RegsForValue RFV(*DAG.getContext(), DAG.getTargetLoweringInfo(), InReg,
|
||||||
Ty);
|
Ty);
|
||||||
SDValue Chain = DAG.getEntryNode();
|
SDValue Chain = DAG.getEntryNode();
|
||||||
res = RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V);
|
Result = RFV.getCopyFromRegs(DAG, FuncInfo, getCurSDLoc(), Chain, nullptr, V);
|
||||||
resolveDanglingDebugInfo(V, res);
|
resolveDanglingDebugInfo(V, Result);
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return Result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// getValue - Return an SDValue for the given Value.
|
/// getValue - Return an SDValue for the given Value.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user