build: Add initial cut at LLVMBuild.txt files.
[oota-llvm.git] / lib / VMCore / Use.cpp
index 4e959a516cd4b58f91c9e4949c816e12c0451fc2..359a1517ab79b719062c6294fe9b3c2aa311190e 100644 (file)
@@ -135,11 +135,9 @@ 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);
-  User *She = ref.getPointer();
-  return ref.getInt()
-    ? She
+  const UserRef *ref = reinterpret_cast<const UserRef*>(End);
+  return ref->getInt()
+    ? ref->getPointer()
     : (User*)End;
 }