Post 892c104fb7, LLVM_BUILTIN_UNREACHABLE may not be defined anymore.
Also when LLVM_UNREACHABLE_OPTIMIZE is OFF, emit LLVM_BUILTIN_UNREACHABLE
after LLVM_BUILTIN_TRAP to ensure that diagnostics are suppressed on
environments where LLVM_BUILTIN_TRAP is not marked as noreturn.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
60,030 ms | x64 debian > MLIR.Examples/standalone::test.toy |
Event Timeline
Comment Actions
LGTM!
llvm/include/llvm/Support/ErrorHandling.h | ||
---|---|---|
139–140 | Maybe worth adding something about warnings? Something like: /// ... It conveys intent more clearly, suppresses diagnostics /// for unreachable code paths, and /// allows compilers to omit unnecessary code. |
Maybe worth adding something about warnings?
Something like: