mirror of
https://github.com/intel/llvm.git
synced 2026-02-02 02:00:03 +08:00
Remove unnecessary ASTContext parameters from isMain and isExternC
llvm-svn: 81589
This commit is contained in:
@@ -561,7 +561,7 @@ void CodeGenModule::EmitGlobal(GlobalDecl GD) {
|
||||
// In C++, if this is marked "extern", defer code generation.
|
||||
if (getLangOptions().CPlusPlus && !VD->getInit() &&
|
||||
(VD->getStorageClass() == VarDecl::Extern ||
|
||||
VD->isExternC(getContext())))
|
||||
VD->isExternC()))
|
||||
return;
|
||||
|
||||
// In C, if this isn't a definition, defer code generation.
|
||||
|
||||
Reference in New Issue
Block a user