diff options
author | Henry Wong <movietravelcode@outlook.com> | 2018-08-08 13:37:28 +0000 |
---|---|---|
committer | Henry Wong <movietravelcode@outlook.com> | 2018-08-08 13:37:28 +0000 |
commit | d97b6101d743ca6a6569785f78a0b76456e15715 (patch) | |
tree | 4efc2c0bc1d54de95e38f8104ed2925f92086dc5 /clang/docs/analyzer | |
parent | a677651a5a91a6d7ddfb5d168d92c9e7b7ff9755 (diff) | |
download | bcm5719-llvm-d97b6101d743ca6a6569785f78a0b76456e15715.tar.gz bcm5719-llvm-d97b6101d743ca6a6569785f78a0b76456e15715.zip |
[analyzer] Fix a typo in `RegionStore.txt`.
Summary: The typo of the description for default bindings can be confusing.
Reviewers: NoQ, george.karpenkov
Reviewed By: NoQ, george.karpenkov
Subscribers: xazax.hun, szepet, a.sidorin, mikhail.ramalho, cfe-commits, MTC
Differential Revision: https://reviews.llvm.org/D50382
llvm-svn: 339244
Diffstat (limited to 'clang/docs/analyzer')
-rw-r--r-- | clang/docs/analyzer/RegionStore.txt | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/docs/analyzer/RegionStore.txt b/clang/docs/analyzer/RegionStore.txt index 5d37cf7bed9..ef994b6401e 100644 --- a/clang/docs/analyzer/RegionStore.txt +++ b/clang/docs/analyzer/RegionStore.txt @@ -118,7 +118,7 @@ sometimes zero, for static data, or "uninitialized", for stack variables). int manyInts[10]; manyInts[1] = 42; // Creates a Direct binding for manyInts[1]. print(manyInts[1]); // Retrieves the Direct binding for manyInts[1]; - print(manyInts[0]); // There is no Direct binding for manyInts[1]. + print(manyInts[0]); // There is no Direct binding for manyInts[0]. // Is there a Default binding for the entire array? // There is not, but it is a stack variable, so we use // "uninitialized" as the default value (and emit a @@ -166,6 +166,6 @@ Here's a concrete example: return p2.x; // The binding for FieldRegion 'p2.x' is requested. // There is no Direct binding, so we look for a Default // binding to 'p2' and find the LCV. - // Because it's an LCV, we look at our requested region + // Because it's a LCV, we look at our requested region // and see that it's the '.x' field. We ask for the value // of 'p.x' within the snapshot, and get back 42. |