[all-commits] [llvm/llvm-project] 65fe1a: [libc][NFC] Simplify assert message generation
michaelrj-google via All-commits
all-commits at lists.llvm.org
Tue Jul 25 11:45:58 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 65fe1ac30a4cbca61fb2fcfb60a42aca3777758b
https://github.com/llvm/llvm-project/commit/65fe1ac30a4cbca61fb2fcfb60a42aca3777758b
Author: Michael Jones <michaelrj at google.com>
Date: 2023-07-25 (Tue, 25 Jul 2023)
Changed paths:
M libc/src/__support/libc_assert.h
Log Message:
-----------
[libc][NFC] Simplify assert message generation
Previously displaying a failed assert would involve a runtime integer to
string conversion. This patch changes that to be a compile time string
conversion.
This was inspired by a comment by JonChesterfield on https://reviews.llvm.org/D155899
Reviewed By: lntue, sivachandra, JonChesterfield
Differential Revision: https://reviews.llvm.org/D156168
More information about the All-commits
mailing list