diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-28 19:55:58 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-28 19:55:58 +0000 |
commit | 31bcdb822fe9133b1973de51519d34e5813a6184 (patch) | |
tree | 63e213a6696aae199bddfb55496afd6523468ca1 /lib/Transforms/Utils/PromoteMemoryToRegister.cpp | |
parent | 9ae93cdcc81c50cb865a56b51eb70b2d7d961ad6 (diff) |
Split ConstantVals.h into Constant.h and Constants.h
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/PromoteMemoryToRegister.cpp')
-rw-r--r-- | lib/Transforms/Utils/PromoteMemoryToRegister.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp index 8679701e6a..ab94550077 100644 --- a/lib/Transforms/Utils/PromoteMemoryToRegister.cpp +++ b/lib/Transforms/Utils/PromoteMemoryToRegister.cpp @@ -25,7 +25,7 @@ #include "llvm/Pass.h" #include "llvm/Function.h" #include "llvm/BasicBlock.h" -#include "llvm/ConstantVals.h" +#include "llvm/Constant.h" using std::vector; using std::map; @@ -79,7 +79,7 @@ static inline bool isSafeAlloca(const AllocaInst *AI) { if (MAI->hasIndices()) { // indexed? // Allow the access if there is only one index and the index is // zero. - if (*MAI->idx_begin() != ConstantUInt::get(Type::UIntTy, 0) || + if (*MAI->idx_begin() != Constant::getNullValue(Type::UIntTy) || MAI->idx_begin()+1 != MAI->idx_end()) return false; } |