Skip to content

Commit 2937b25

Browse files
committed
update comment for Origin
1 parent 74cc44d commit 2937b25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/Analysis/LifetimeSafety.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ struct Loan {
8383
struct Origin {
8484
OriginID ID;
8585
/// A pointer to the AST node that this origin represents. This union
86-
/// distinguishes between origins from lvalues (named variables or parameter)
87-
/// and rvalues (expressions).
86+
/// distinguishes between origins from declarations (variables or parameters)
87+
/// and origins from expressions.
8888
llvm::PointerUnion<const clang::ValueDecl *, const clang::Expr *> Ptr;
8989

9090
Origin(OriginID ID, const clang::ValueDecl *D) : ID(ID), Ptr(D) {}

0 commit comments

Comments
 (0)