summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-07-01 03:55:39 +0000
committerDan Gohman <gohman@apple.com>2010-07-01 03:55:39 +0000
commit85e02e9340b370568f87ebc72a2d310fca2a2d90 (patch)
treef99400091ad1a2a9728920412cf6e2b952bc2034 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parentd537dc022ac3c8701e028da175fadd822990f3d0 (diff)
downloadbcm5719-llvm-85e02e9340b370568f87ebc72a2d310fca2a2d90.tar.gz
bcm5719-llvm-85e02e9340b370568f87ebc72a2d310fca2a2d90.zip
Rename CreateRegForValue to CreateReg, and change its argument
from a Value to a Type, because it doesn't actually care about the Value. llvm-svn: 107383
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 0848e46c0ef..7e78bf1b7ad 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -730,7 +730,7 @@ void SelectionDAGISel::SelectAllBasicBlocks(const Function &Fn) {
if (!BI->getType()->isVoidTy() && !BI->use_empty()) {
unsigned &R = FuncInfo->ValueMap[BI];
if (!R)
- R = FuncInfo->CreateRegForValue(BI);
+ R = FuncInfo->CreateReg(BI->getType());
}
bool HadTailCall = false;
OpenPOWER on IntegriCloud