mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01: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…
x
Reference in New Issue
Block a user