projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8be88a
)
Fix Casting
author
David Greene
<greened@obbligato.org>
Mon, 14 Jan 2013 21:04:37 +0000
(21:04 +0000)
committer
David Greene
<greened@obbligato.org>
Mon, 14 Jan 2013 21:04:37 +0000
(21:04 +0000)
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
patch
|
blob
|
history
diff --git
a/lib/IR/Use.cpp
b/lib/IR/Use.cpp
index 481cbab7c294b14feb9f28471b8b885bc6eb53a1..1d343e8030944cbc5e5e78f78be773ecf2fd1e62 100644
(file)
--- 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