summaryrefslogtreecommitdiffstats
path: root/clang/lib/Analysis/RegionStore.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-13 15:39:16 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-13 15:39:16 +0000
commit0bf152ef0bb54fc056fd675a125a410b67a5129b (patch)
treed67d496454329f3dbba23df272d6549a733d28b8 /clang/lib/Analysis/RegionStore.cpp
parent846b1ec40f829bdfc5047128a9131e66a1a6aaf7 (diff)
downloadbcm5719-llvm-0bf152ef0bb54fc056fd675a125a410b67a5129b.tar.gz
bcm5719-llvm-0bf152ef0bb54fc056fd675a125a410b67a5129b.zip
Updated comment.
llvm-svn: 66894
Diffstat (limited to 'clang/lib/Analysis/RegionStore.cpp')
-rw-r--r--clang/lib/Analysis/RegionStore.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/Analysis/RegionStore.cpp b/clang/lib/Analysis/RegionStore.cpp
index 5f1c39c2b69..6b962b1c1f9 100644
--- a/clang/lib/Analysis/RegionStore.cpp
+++ b/clang/lib/Analysis/RegionStore.cpp
@@ -646,6 +646,8 @@ SVal RegionStoreManager::EvalBinOp(BinaryOperator::Opcode Op, Loc L, NonLoc R) {
// they don't match. This can result from pointer arithmetic. In reality,
// we should figure out what are the proper semantics and implement them.
//
+ // This addresses the test case test/Analysis/ptr-arith.c
+ //
nonloc::ConcreteInt OffConverted(getBasicVals().Convert(Base->getValue(),
Offset->getValue()));
SVal NewIdx = Base->EvalBinOp(getBasicVals(), Op, OffConverted);
OpenPOWER on IntegriCloud