From: David Greene Date: Mon, 14 Jan 2013 21:04:37 +0000 (+0000) Subject: Fix Casting X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=914d4a76fe0dd7aafb9f06f5af2dcf09c0b87ee7;p=oota-llvm.git 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 --- diff --git a/lib/IR/Use.cpp b/lib/IR/Use.cpp index 481cbab7c29..1d343e80309 100644 --- a/lib/IR/Use.cpp +++ b/lib/IR/Use.cpp @@ -139,7 +139,7 @@ User *Use::getUser() const { const UserRef *ref = reinterpret_cast(End); return ref->getInt() ? ref->getPointer() - : (User*)End; + : reinterpret_cast(const_cast(End)); } } // End llvm namespace