aboutsummaryrefslogtreecommitdiff
path: root/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2013-01-14 18:58:38 +0000
committerJordan Rose <jordan_rose@apple.com>2013-01-14 18:58:38 +0000
commit469e73035c745f39edf7fe882edb09c06559e581 (patch)
tree4855e3bf3197c297b19accd404ab6be6e951a703 /include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h
parent14a372bb7d7681cdfbcebe71b109e773327e4e1c (diff)
[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
Diffstat (limited to 'include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h')
-rw-r--r--include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h b/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h
index 851cafb52c..34f450f4fb 100644
--- a/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h
+++ b/include/clang/StaticAnalyzer/Core/PathSensitive/ProgramStateTrait.h
@@ -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) {