[cfe-dev] [Fwd: why RegisterPass<TargetData> initialize itself twice in my system]

Eli Friedman eli.friedman at gmail.com
Sat May 23 17:02:32 PDT 2009


On Sat, May 23, 2009 at 4:13 PM, Xin LIU <navy.xliu at gmail.com> wrote:
> Eli,
>
> 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.

Passing -lLTO on the link line looks wrong.

-Eli




More information about the cfe-dev mailing list