diff options
author | Kazu Hirata <kazu@google.com> | 2025-07-07 19:17:49 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2025-07-07 19:17:49 -0700 |
commit | 0b533f2d9f0551aaffb13dcac8e0fd0a952185b5 (patch) | |
tree | 6924b282924541771d188ad6e80cb270a33d8413 | |
parent | be7e146dd3f13307f5988a5d5b652667902a1c8e (diff) | |
download | llvm-0b533f2d9f0551aaffb13dcac8e0fd0a952185b5.zip llvm-0b533f2d9f0551aaffb13dcac8e0fd0a952185b5.tar.gz llvm-0b533f2d9f0551aaffb13dcac8e0fd0a952185b5.tar.bz2 |
[IPO] Fix a warning
This patch fixes:
llvm/include/llvm/Transforms/IPO/Attributor.h:1233:3: error:
'llvm::InformationCache' has virtual functions but non-virtual
destructor [-Werror,-Wnon-virtual-dtor]
-rw-r--r-- | llvm/include/llvm/Transforms/IPO/Attributor.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Transforms/IPO/Attributor.h b/llvm/include/llvm/Transforms/IPO/Attributor.h index 97876877..1c589fb 100644 --- a/llvm/include/llvm/Transforms/IPO/Attributor.h +++ b/llvm/include/llvm/Transforms/IPO/Attributor.h @@ -1230,7 +1230,7 @@ struct InformationCache { }); } - ~InformationCache() { + virtual ~InformationCache() { // The FunctionInfo objects are allocated via a BumpPtrAllocator, we call // the destructor manually. for (auto &It : FuncInfoMap) |