[PATCH] D60385: FileCheck [5/12]: Introduce regular numeric variables
Matt Arsenault via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 06:35:28 PDT 2019
arsenm added inline comments.
================
Comment at: llvm/lib/Support/FileCheck.cpp:27-51
+/// Return value of this numeric variable.
+llvm::Optional<uint64_t> FileCheckNumExprVar::getValue() const {
+ if (!Defined)
+ return llvm::None;
+ return Value;
+}
+
----------------
thopre wrote:
> thopre wrote:
> > arsenm wrote:
> > > This can go away if you just use Optional as the member
> > Sorry I don't follow. An Optional variable as the member of the binop? How does that help? I still have to check whether that variable has a value or not.
> Ping?
I'm confused because the code here doesn't match what I see in the Phabricator email anymore.
If you are separately tracking Defined and returning None or Value, this is the same as just returning an Optional member
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60385/new/
https://reviews.llvm.org/D60385
More information about the llvm-commits
mailing list