commit | 7155a7d061a01aea9dbbcdb53adb5ebdea3e8b9f | [log] [tgz] |
---|---|---|
author | David Greene <greened@obbligato.org> | Mon Jan 14 21:04:37 2013 +0000 |
committer | David Greene <greened@obbligato.org> | Mon Jan 14 21:04:37 2013 +0000 |
tree | 2bc3eb3e058fba3b954cbcb3cb026b536f457444 | |
parent | 4c66a58b644bee6a8e2f1ac13c38901bfeddd84e [diff] [blame] |
Fix Casting Stop a gcc warning about casting away const. llvm-svn: 172465
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 @@ 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