Fix Casting

Stop a gcc warning about casting away const.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172465 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
David Greene 2013-01-14 21:04:37 +00:00
parent c8be88ab56
commit 914d4a76fe

View File

@ -139,7 +139,7 @@ User *Use::getUser() const {
const UserRef *ref = reinterpret_cast<const UserRef*>(End); const UserRef *ref = reinterpret_cast<const UserRef*>(End);
return ref->getInt() return ref->getInt()
? ref->getPointer() ? ref->getPointer()
: (User*)End; : reinterpret_cast<User*>(const_cast<Use*>(End));
} }
} // End llvm namespace } // End llvm namespace