[PATCH] D27028: Add intrinsics for constrained floating point operations
Mehdi AMINI via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 5 14:59:18 PST 2016
mehdi_amini added a comment.
Having the llvm_unreachable right after the StringSwitch should achieve the same thing.
Otherwise a possible more generic extension to StringSwitch would be to accept lambdas:
StringSwitch(...)
.Case("Value1", [] { return computeValue(); })
.Default([] -> T { report_fatal_error("Unexpected Value XXX in YYYY"); }
Repository:
rL LLVM
https://reviews.llvm.org/D27028
More information about the llvm-commits
mailing list