diff options
author | David Greene <greened@obbligato.org> | 2013-01-14 21:04:37 +0000 |
---|---|---|
committer | David Greene <greened@obbligato.org> | 2013-01-14 21:04:37 +0000 |
commit | 914d4a76fe0dd7aafb9f06f5af2dcf09c0b87ee7 (patch) | |
tree | b79f497ea97ba1d2764950b894a890aea9c84213 /lib/IR | |
parent | c8be88ab562412da359f714502e30ff61459efa0 (diff) | |
download | external_llvm-914d4a76fe0dd7aafb9f06f5af2dcf09c0b87ee7.zip external_llvm-914d4a76fe0dd7aafb9f06f5af2dcf09c0b87ee7.tar.gz external_llvm-914d4a76fe0dd7aafb9f06f5af2dcf09c0b87ee7.tar.bz2 |
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
Diffstat (limited to 'lib/IR')
-rw-r--r-- | lib/IR/Use.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/IR/Use.cpp b/lib/IR/Use.cpp index 481cbab..1d343e8 100644 --- a/lib/IR/Use.cpp +++ b/lib/IR/Use.cpp @@ -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 |