<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
> The crash occurs only with clang compile in debug mode. <br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Sanity check: you're not mixing clang in debug mode with LLVM in release mode, right?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
I've seen similar crashes in DenseMap when I *accidentally* did the above.<br>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> llvm-dev <llvm-dev-bounces@lists.llvm.org> on behalf of Francois Pichet via llvm-dev <llvm-dev@lists.llvm.org><br>
<b>Sent:</b> Wednesday, January 22, 2020 1:00 PM<br>
<b>To:</b> llvm-dev@lists.llvm.org <llvm-dev@lists.llvm.org><br>
<b>Subject:</b> [llvm-dev] Crash in SmallVector with latest MSVC 2019 (debug mode)</font>
<div> </div>
</div>
<div>
<div dir="ltr">Is anybody using the LLVM/clang/lldb compiled with the MSVC 2019 (x86-32bit) successfully?
<div>I am getting crash in SmallVector at multiple places after a llvm:SmallVector is being moved around in move constructor or move operator=.</div>
<div> Not sure what is going on.</div>
<div><br>
</div>
<div>  ~SmallVectorImpl() {<br>
    if (!this->isSmall())<br>
      free(this->begin());  // <=== crash here, line 336 SmallVector.h<br>
  }<br>
</div>
<div><br>
</div>
<div>The crash occurs only with clang compile in debug mode. Release mode is fine. </div>
<div><br>
</div>
</div>
</div>
</body>
</html>