[libc-commits] [libc] [libc] Fix erroenous warning on GCC (PR #101520)
via libc-commits
libc-commits at lists.llvm.org
Thu Aug 1 10:04:59 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libc
Author: Joseph Huber (jhuber6)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/101520.diff
1 Files Affected:
- (modified) libc/src/stdio/printf_core/writer.h (+1)
``````````diff
diff --git a/libc/src/stdio/printf_core/writer.h b/libc/src/stdio/printf_core/writer.h
index 7dfdea2c5bc40..5526a478ea620 100644
--- a/libc/src/stdio/printf_core/writer.h
+++ b/libc/src/stdio/printf_core/writer.h
@@ -100,6 +100,7 @@ struct WriteBuffer {
case WriteMode::RESIZE_AND_FILL_BUFF:
return resize_and_write(new_str);
}
+ __builtin_unreachable();
}
};
``````````
</details>
https://github.com/llvm/llvm-project/pull/101520
More information about the libc-commits
mailing list