[PATCH] D99275: Add the TableGen assert statement, step 2
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 24 22:00:22 PDT 2021
dblaikie added inline comments.
================
Comment at: llvm/lib/TableGen/Error.cpp:160-162
+ auto *CondValue = dyn_cast_or_null<IntInit>(
+ Condition->convertInitializerTo(IntRecTy::get()));
+ if (CondValue) {
----------------
Usually we fold the variable into the condition
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99275/new/
https://reviews.llvm.org/D99275
More information about the llvm-commits
mailing list