[PATCH] D60388: FileCheck [8/12]: Define numeric var from expr
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 16 03:49:56 PDT 2019
thopre added inline comments.
================
Comment at: llvm/lib/Support/FileCheck.cpp:37
+ if (ExpressionAST != nullptr) {
+ Expected<uint64_t> EvaluatedValue = ExpressionAST->eval();
+ assert(EvaluatedValue &&
----------------
jhenderson wrote:
> This is unchecked in builds without assertions.
That's fine. setValue is called after substitution has happened and match was successful. Therefore ExpressionAST ought to evaluate fine. This is just in case code is reworked in the future and this invariant is broken.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60388/new/
https://reviews.llvm.org/D60388
More information about the llvm-commits
mailing list