[llvm-branch-commits] [clang] clang: Use a switch over APFloat semantics instead of if chain (PR #207213)

Nikita Popov via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sun Jul 5 00:48:20 PDT 2026


================
@@ -301,21 +301,24 @@ void CodeGenTypes::RefreshTypeCacheForClass(const CXXRecordDecl *RD) {
 
 static llvm::Type *getTypeForFormat(llvm::LLVMContext &VMContext,
                                     const llvm::fltSemantics &format) {
----------------
nikic wrote:

This entire method should be replaced by `Type::getFloatingPointType()`.

https://github.com/llvm/llvm-project/pull/207213


More information about the llvm-branch-commits mailing list