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
Event Timeline
Comment Actions
LGTM!
llvm/include/llvm/Support/ErrorHandling.h | ||
---|---|---|
138–141 | 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: