[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:
Jordan Rose 2013-01-14 18:58:38 +00:00
parent cb6a721920
commit d540aed61b
1 changed files with 1 additions and 1 deletions

View File

@ -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) {