forked from OSchip/llvm-project
[analyzer] Fix cast-away-const warning by using const_cast.
Patch by David Greene, modified by me. llvm-svn: 172445
This commit is contained in:
parent
cb6a721920
commit
d540aed61b
|
@ -167,7 +167,7 @@ namespace ento {
|
|||
}
|
||||
|
||||
static inline void *MakeVoidPtr(data_type D) {
|
||||
return (void*) D.getInternalPointer();
|
||||
return const_cast<llvm::ImmutableListImpl<T> >(D.getInternalPointer());
|
||||
}
|
||||
|
||||
static inline context_type MakeContext(void *p) {
|
||||
|
|
Loading…
Reference in New Issue