Skip to content

Commit

Permalink
Update LValueToRValue cast observed bounds comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kakje committed May 6, 2020
1 parent 2712d1e commit 2b4d323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/lib/Sema/SemaBounds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4689,7 +4689,7 @@ namespace {
case CastKind::CK_LValueToRValue: {
// For an rvalue cast of a variable v, if v has observed bounds,
// the rvalue bounds of the value of v should be the observed bounds.
// This also accounts for any variables that have widened bounds.
// This also accounts for variables that have widened bounds.
if (DeclRefExpr *V = GetRValueVariable(E)) {
if (const VarDecl *D = dyn_cast_or_null<VarDecl>(V->getDecl())) {
if (BoundsExpr *B = State.ObservedBounds[D])
Expand Down

0 comments on commit 2b4d323

Please sign in to comment.