Closed
Description
An assertion fail while rewriting this with-alltypes
. It looks like this happen when we try to rewrite a source range where the start SourceLocation comes after the end SourceLocation.
void a() {
struct {int i;} *b;
}
3c: clang/lib/Rewrite/RewriteRope.cpp:380: void {anonymous}::RopePieceBTreeLeaf::erase(unsigned int, unsigned int): Assertion `getPiece(StartPiece).size() > NumBytes' failed.
This error causes the -alltypes
conversion of libarchive to fail.