Skip to content

Commit 0b533f2

Browse files
[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]
1 parent be7e146 commit 0b533f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/Transforms/IPO/Attributor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1230,7 +1230,7 @@ struct InformationCache {
12301230
});
12311231
}
12321232

1233-
~InformationCache() {
1233+
virtual ~InformationCache() {
12341234
// The FunctionInfo objects are allocated via a BumpPtrAllocator, we call
12351235
// the destructor manually.
12361236
for (auto &It : FuncInfoMap)

0 commit comments

Comments
 (0)