[llvm-dev] Crash in SmallVector with latest MSVC 2019 (debug mode)

Francois Pichet via llvm-dev llvm-dev at lists.llvm.org
Wed Jan 22 10:00:23 PST 2020


Is anybody using the LLVM/clang/lldb compiled with the MSVC 2019
(x86-32bit) successfully?
I am getting crash in SmallVector at multiple places after a
llvm:SmallVector is being moved around in move constructor or move
operator=.
 Not sure what is going on.

  ~SmallVectorImpl() {
    if (!this->isSmall())
      free(this->begin());  // <=== crash here, line 336 SmallVector.h
  }

The crash occurs only with clang compile in debug mode. Release mode is
fine.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200122/ce0b66cf/attachment.html>


More information about the llvm-dev mailing list