Skip to content
Snippets Groups Projects
Commit 469e7303 authored by Jordan Rose's avatar Jordan Rose
Browse files

[analyzer] Fix cast-away-const warning by using const_cast.

Patch by David Greene, modified by me.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@172445 91177308-0d34-0410-b5e6-96231b3b80d8
parent 14a372bb
No related branches found
No related tags found
No related merge requests found
...@@ -167,7 +167,7 @@ namespace ento { ...@@ -167,7 +167,7 @@ namespace ento {
} }
static inline void *MakeVoidPtr(data_type D) { 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) { static inline context_type MakeContext(void *p) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment