aboutsummaryrefslogtreecommitdiffstats
path: root/lib/IR
diff options
context:
space:
mode:
authorDavid Greene <greened@obbligato.org>2013-01-14 21:04:37 +0000
committerDavid Greene <greened@obbligato.org>2013-01-14 21:04:37 +0000
commit914d4a76fe0dd7aafb9f06f5af2dcf09c0b87ee7 (patch)
treeb79f497ea97ba1d2764950b894a890aea9c84213 /lib/IR
parentc8be88ab562412da359f714502e30ff61459efa0 (diff)
downloadexternal_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.cpp2
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