1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Fix Casting

Stop a gcc warning about casting away const.

llvm-svn: 172465
This commit is contained in:
David Greene 2013-01-14 21:04:37 +00:00
parent 6d59c943e8
commit 6637296080

View File

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