Author: Federico Bruzzone
Date: 2026-10-31T14:29:09+01:00
New Revision: 9c1973b594cddf493acd90f5cdb31da26db3c4cc

URL: 
https://github.com/llvm/llvm-project/commit/9c1973b594cddf493acd90f5cdb31da26db3c4cc
DIFF: 
https://github.com/llvm/llvm-project/commit/9c1973b594cddf493acd90f5cdb31da26db3c4cc.diff

LOG: [CIR] Remove `noexcept` from ABIInfo destructor (NFC) (#235779)

This NFC removes `noexcept` from the `ABIInfo` destructor in order to
suppress this compilation warning:

```sh
[1/10] Building CXX object 
tools/clang/lib/CIR/CodeGen/CMakeFiles/obj.clangCIR.dir/TargetInfo.cpp.o
/Users/federicobruzzone/dev/llvm-project/clang/lib/CIR/CodeGen/TargetInfo.cpp:177:10:
 warning: function previously declared with an implicit exception specification 
redeclared with an explicit exception specification 
[-Wimplicit-exception-spec-mismatch]
  177 | ABIInfo::~ABIInfo() noexcept = default;
      |          ^
/Users/federicobruzzone/dev/llvm-project/clang/lib/CIR/CodeGen/ABIInfo.h:25:11: 
note: previous declaration is here
   25 |   virtual ~ABIInfo();
      |           ^
1 warning generated.
```

Signed-off-by: Federico Bruzzone <[email protected]>

Added: 
    

Modified: 
    clang/lib/CIR/CodeGen/TargetInfo.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/CIR/CodeGen/TargetInfo.cpp 
b/clang/lib/CIR/CodeGen/TargetInfo.cpp
index 79620906baa0c2..148bf70a08c6f1 100644
--- a/clang/lib/CIR/CodeGen/TargetInfo.cpp
+++ b/clang/lib/CIR/CodeGen/TargetInfo.cpp
@@ -174,7 +174,7 @@ clang::CIRGen::createX8664TargetCIRGenInfo(CIRGenTypes 
&cgt) {
   return std::make_unique<X8664TargetCIRGenInfo>(cgt);
 }
 
-ABIInfo::~ABIInfo() noexcept = default;
+ABIInfo::~ABIInfo() = default;
 
 bool TargetCIRGenInfo::isNoProtoCallVariadic(
     const FunctionNoProtoType *fnType) const {


        
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to