diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-01 03:55:39 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-01 03:55:39 +0000 |
commit | ffda6bac113d4c079b534b1bfa7aea5498ee3e83 (patch) | |
tree | 0a2e1621c3b5d17432e77820421db82d16790f94 /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
parent | a528bc0e8af8e4d70ba03e03319cce7c5775e4ea (diff) | |
download | external_llvm-ffda6bac113d4c079b534b1bfa7aea5498ee3e83.zip external_llvm-ffda6bac113d4c079b534b1bfa7aea5498ee3e83.tar.gz external_llvm-ffda6bac113d4c079b534b1bfa7aea5498ee3e83.tar.bz2 |
Rename CreateRegForValue to CreateReg, and change its argument
from a Value to a Type, because it doesn't actually care about
the Value.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107383 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 0848e46..7e78bf1 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/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; |