[cfe-dev] LangOptions of ASTUnit::LoadFromPCHFile() goes out of scope

Zhongxing Xu xuzhongxing at gmail.com
Mon Jul 20 23:24:56 PDT 2009

The LangOptions LangInfo is a local variable of
ASTUnit::LoadFromPCHFile(). When it goes out of scope, it is still
referenced by the preprocessor (ASTUnit.cpp:126). I think the
preprocessor should refer to the LangOptions of ASTContext, which owns
one copy of LangOptions.


More information about the cfe-dev mailing list