[cfe-dev] clang::CodeGen::CodeGenModule::GetOrCreateLLVMGlobal

Vassil Vassilev vasil.georgiev.vasilev at cern.ch
Mon Mar 10 06:58:00 PDT 2014


Hi,
   I noticed that CodeGenModule.cpp (around line number 1514):

     if (UnnamedAddr)
       Entry->setUnnamedAddr(true);

is executed only in the 'Get'-branch. I.e if the global doesn't exist 
this flag is not taken into account. Is that an inconsistency or a 
desired behavior?
Many thanks,
Vassil



More information about the cfe-dev mailing list