Skip to content

Commit 30f0cd5

Browse files
committed
[Sema] followups from efe4a54
Accidentally left review fixes out of the commit.
1 parent efe4a54 commit 30f0cd5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/include/clang/Sema/Ownership.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,15 @@ template <class Ptr> struct IsResultPtrLowBitFree {
144144
/// The result of parsing/analyzing an expression, statement etc.
145145
///
146146
/// It may be:
147-
/// - a valid pointer to the result object
148-
/// - unset (null but valid), for constructs that may legitimately be absent
147+
/// - usable: a valid pointer to the result object
148+
/// - unset (null but valid): for constructs that may legitimately be absent
149149
/// (for example, the condition of a for loop)
150-
/// - invalid, indicating an error
150+
/// - invalid: indicating an error
151151
/// (no detail is provided, usually the error has already been diagnosed)
152152
template <class PtrTy, bool Compress = IsResultPtrLowBitFree<PtrTy>::value>
153153
class ActionResult {
154154
PtrTy Val = {};
155-
bool Invalid;
155+
bool Invalid = false;
156156

157157
public:
158158
ActionResult(bool Invalid = false) : Val(PtrTy()), Invalid(Invalid) {}

0 commit comments

Comments
 (0)