[PATCH] D60385: FileCheck [5/12]: Introduce regular numeric variables
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 9 06:25:22 PDT 2019
thopre marked an inline comment as done.
thopre 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:
> 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?
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