diff options
| author | Bob Wilson <bob.wilson@apple.com> | 2010-01-29 20:34:28 +0000 | 
|---|---|---|
| committer | Bob Wilson <bob.wilson@apple.com> | 2010-01-29 20:34:28 +0000 | 
| commit | 34e10c22181f29ab39001809bfe9bf3776cc9116 (patch) | |
| tree | df18ec6fa3d078376dc39bf79b538a27e76cc356 /llvm/lib/Transforms | |
| parent | 23a71a1cdf7ad3a81386578621a41e27c4ad06d4 (diff) | |
| download | bcm5719-llvm-34e10c22181f29ab39001809bfe9bf3776cc9116.tar.gz bcm5719-llvm-34e10c22181f29ab39001809bfe9bf3776cc9116.zip  | |
Use uint64_t instead of unsigned for offsets and sizes.
llvm-svn: 94835
Diffstat (limited to 'llvm/lib/Transforms')
| -rw-r--r-- | llvm/lib/Transforms/Utils/Local.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp index f0097d0362c..425f5572969 100644 --- a/llvm/lib/Transforms/Utils/Local.cpp +++ b/llvm/lib/Transforms/Utils/Local.cpp @@ -44,7 +44,7 @@ using namespace llvm;  /// This is closely related to Value::getUnderlyingObject but is located  /// here to avoid making VMCore depend on TargetData.  static Value *getUnderlyingObjectWithOffset(Value *V, const TargetData *TD, -                                            unsigned &ByteOffset, +                                            uint64_t &ByteOffset,                                              unsigned MaxLookup = 6) {    if (!isa<PointerType>(V->getType()))      return V; @@ -76,7 +76,7 @@ static Value *getUnderlyingObjectWithOffset(Value *V, const TargetData *TD,  /// ScanFrom, to determine if the address is already accessed.  bool llvm::isSafeToLoadUnconditionally(Value *V, Instruction *ScanFrom,                                         const TargetData *TD) { -  unsigned ByteOffset = 0; +  uint64_t ByteOffset = 0;    Value *Base = V;    if (TD)      Base = getUnderlyingObjectWithOffset(V, TD, ByteOffset); @@ -98,7 +98,7 @@ bool llvm::isSafeToLoadUnconditionally(Value *V, Instruction *ScanFrom,      if (BaseType->isSized()) {        // Check if the load is within the bounds of the underlying object.        const PointerType *AddrTy = cast<PointerType>(V->getType()); -      unsigned LoadSize = TD->getTypeStoreSize(AddrTy->getElementType()); +      uint64_t LoadSize = TD->getTypeStoreSize(AddrTy->getElementType());        if (ByteOffset + LoadSize <= TD->getTypeAllocSize(BaseType))          return true;      }  | 

