From 7155a7d061a01aea9dbbcdb53adb5ebdea3e8b9f Mon Sep 17 00:00:00 2001 From: David Greene Date: Mon, 14 Jan 2013 21:04:37 +0000 Subject: Fix Casting Stop a gcc warning about casting away const. llvm-svn: 172465 --- llvm/lib/IR/Use.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/IR/Use.cpp') diff --git a/llvm/lib/IR/Use.cpp b/llvm/lib/IR/Use.cpp index 481cbab..1d343e8 100644 --- a/llvm/lib/IR/Use.cpp +++ b/llvm/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 -- cgit v1.1