mirror of
https://github.com/intel/llvm.git
synced 2026-01-27 06:06:34 +08:00
Fix two asan found bugs:
We were leaking InputFile subclasses data. UndefinedElf was missing a classof. llvm-svn: 256309
This commit is contained in:
@@ -31,6 +31,8 @@ public:
|
||||
};
|
||||
}
|
||||
|
||||
InputFile::~InputFile() {}
|
||||
|
||||
template <class ELFT>
|
||||
ELFFileBase<ELFT>::ELFFileBase(Kind K, MemoryBufferRef M)
|
||||
: InputFile(K, M), ELFObj(MB.getBuffer(), ECRAII().getEC()) {}
|
||||
|
||||
Reference in New Issue
Block a user