From 914d4a76fe0dd7aafb9f06f5af2dcf09c0b87ee7 Mon Sep 17 00:00:00 2001 From: David Greene Date: Mon, 14 Jan 2013 21:04:37 +0000 Subject: [PATCH] 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 --- lib/IR/Use.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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