[why RegisterPass<TargetData> initialize itself twice in my system]


You posted a very stripped version of clang-cc this Wednesday. Because
i am pretty dumb to clang building system, i wrote a standalone Makefile
to build it from scratch. However, i can not understand why global
static variable RegisterPass<TargetData> registers itself twice, which
will lead simple crash at assertion stmt.


dump.out (2.46 KB)

Makefile (498 Bytes)

Passing -lLTO on the link line looks wrong.