[PATCH] D50382: [analyzer] Fix a typo in `RegionStore.txt`.

Phabricator via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 8 06:38:01 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL339244: [analyzer] Fix a typo in `RegionStore.txt`. (authored by henrywong, committed by ).
Herald added a subscriber: llvm-commits.

Repository:
  rL LLVM

https://reviews.llvm.org/D50382

Files:
  cfe/trunk/docs/analyzer/RegionStore.txt


Index: cfe/trunk/docs/analyzer/RegionStore.txt
===================================================================
--- cfe/trunk/docs/analyzer/RegionStore.txt
+++ cfe/trunk/docs/analyzer/RegionStore.txt
@@ -118,7 +118,7 @@
   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 @@
     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.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50382.159706.patch
Type: text/x-patch
Size: 1283 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180808/df359d41/attachment.bin>


More information about the cfe-commits mailing list