diff options
Diffstat (limited to 'lib/VMCore')
-rw-r--r-- | lib/VMCore/Use.cpp | 4 | ||||
-rw-r--r-- | lib/VMCore/User.cpp | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/VMCore/Use.cpp b/lib/VMCore/Use.cpp index 4e959a5..2258b8d 100644 --- a/lib/VMCore/Use.cpp +++ b/lib/VMCore/Use.cpp @@ -135,8 +135,8 @@ void Use::zap(Use *Start, const Use *Stop, bool del) { User *Use::getUser() const { const Use *End = getImpliedUser(); - const PointerIntPair<User*, 1, Tag>& ref( - static_cast<const AugmentedUse*>(End - 1)->ref); + const PointerIntPair<User*, 1, unsigned>& + ref(static_cast<const AugmentedUse*>(End - 1)->ref); User *She = ref.getPointer(); return ref.getInt() ? She diff --git a/lib/VMCore/User.cpp b/lib/VMCore/User.cpp index 153eb34..ba2b208 100644 --- a/lib/VMCore/User.cpp +++ b/lib/VMCore/User.cpp @@ -44,9 +44,10 @@ Use *User::allocHungoffUses(unsigned N) const { + sizeof(AugmentedUse) - sizeof(Use))); Use *End = Begin + N; - PointerIntPair<User*, 1, Tag>& ref(static_cast<AugmentedUse&>(End[-1]).ref); + PointerIntPair<User*, 1, unsigned>& + ref(static_cast<AugmentedUse&>(End[-1]).ref); ref.setPointer(const_cast<User*>(this)); - ref.setInt(tagOne); + ref.setInt(1); return Use::initTags(Begin, End); } |