Clang 3.5.1 assertion failure on FreeBSD when building LLDB

A change between r231216 and r231221 causes an assertion failure on
the LLDB FreeBSD bot. The compiler is FreeBSD's in-tree one: FreeBSD
clang version 3.5.1 (tags/RELEASE_351/final 225668) 20150115

First failing build:
http://lab.llvm.org:8011/builders/lldb-x86_64-freebsd/builds/4668/steps/compile/logs/stdio

Assertion:
Assertion failed: ((!DD->isTrivial() || DD->hasAttr<DLLExportAttr>())
&& "Should not emit dtor epilogue for non-exported trivial dtor!"),
function EnterDtorCleanups, file
/usr/src/lib/clang/libclangcodegen/../../../contrib/llvm/tools/clang/lib/CodeGen/CGClass.cpp,
line 1429.

Galina, is it possible to get the /tmp/CommandLine-26c092.cpp and .sh
from the bot?

Hi Ed,

I'm already investigating it, as it broke our buildbots, too.

cheers,
--renato

I'm seeing the same when building llvm trunk with clang 3.6.

   http://llvm.org/bugs/show_bug.cgi?id=22791

The bug also has a creduced test case.

  Sami

Takumi’s revert in 231254 should hopefully have addressed this. Let me know if it’s still being seen?