diff options
author | Dan Gohman <gohman@apple.com> | 2010-07-20 16:44:52 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-07-20 16:44:52 +0000 |
commit | 7c58dbd88c36c5d6c411ea6c046ddcff4c5841e9 (patch) | |
tree | 326fb6954c82d85f4f9442c21dce5b40d0327674 /include/llvm | |
parent | af8e2ef649b90e88f9d595a638279e3bc4892845 (diff) | |
download | external_llvm-7c58dbd88c36c5d6c411ea6c046ddcff4c5841e9.zip external_llvm-7c58dbd88c36c5d6c411ea6c046ddcff4c5841e9.tar.gz external_llvm-7c58dbd88c36c5d6c411ea6c046ddcff4c5841e9.tar.bz2 |
Make getOrInsertCanonicalInductionVariable guarantee that its
result is a PHINode*.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108852 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolutionExpander.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Analysis/ScalarEvolutionExpander.h b/include/llvm/Analysis/ScalarEvolutionExpander.h index 9501555..e4f2809 100644 --- a/include/llvm/Analysis/ScalarEvolutionExpander.h +++ b/include/llvm/Analysis/ScalarEvolutionExpander.h @@ -76,7 +76,8 @@ namespace llvm { /// canonical induction variable of the specified type for the specified /// loop (inserting one if there is none). A canonical induction variable /// starts at zero and steps by one on each iteration. - Value *getOrInsertCanonicalInductionVariable(const Loop *L, const Type *Ty); + PHINode *getOrInsertCanonicalInductionVariable(const Loop *L, + const Type *Ty); /// expandCodeFor - Insert code to directly compute the specified SCEV /// expression into the program. The inserted code is inserted into the |