mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 11:02:59 +02:00
Fix Casting
Stop a gcc warning about casting away const. llvm-svn: 172465
This commit is contained in:
parent
6d59c943e8
commit
6637296080
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user