projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d805bcb
)
Handle Values with no value in getCopyFromRegs.
author
Dan Gohman
<gohman@apple.com>
Mon, 26 Jul 2010 18:15:41 +0000
(18:15 +0000)
committer
Dan Gohman
<gohman@apple.com>
Mon, 26 Jul 2010 18:15:41 +0000
(18:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109415
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 723e0f0a91483e3c873efd8b6ea53a73342dbbd5..1c8f22a2a2519577aeae71d8087fda7986b11cc9 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@
-530,6
+530,10
@@
SDValue RegsForValue::getCopyFromRegs(SelectionDAG &DAG,
FunctionLoweringInfo &FuncInfo,
DebugLoc dl,
SDValue &Chain, SDValue *Flag) const {
+ // A Value with type {} or [0 x %t] needs no registers.
+ if (ValueVTs.empty())
+ return SDValue();
+
const TargetLowering &TLI = DAG.getTargetLoweringInfo();
// Assemble the legal parts into the final values.