llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Federico Bruzzone (FedericoBruzzone)

<details>
<summary>Changes</summary>

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.
```

---
Full diff: https://github.com/llvm/llvm-project/pull/235779.diff


1 Files Affected:

- (modified) clang/lib/CIR/CodeGen/TargetInfo.cpp (+1-1) 


``````````diff
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 {

``````````

</details>


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

Reply via email to