Fix a bug noticed by Emil Mikulic.

llvm-svn: 31538
This commit is contained in:
Chris Lattner 2006-11-08 05:58:11 +00:00
parent d48f7dd250
commit 60f1f194f9
1 changed files with 2 additions and 2 deletions

View File

@ -2102,8 +2102,8 @@ Function : BasicBlockList END {
};
FnDeclareLinkage: /*default*/ |
DLLIMPORT { CurFun.Linkage = GlobalValue::DLLImportLinkage } |
EXTERN_WEAK { CurFun.Linkage = GlobalValue::DLLImportLinkage };
DLLIMPORT { CurFun.Linkage = GlobalValue::DLLImportLinkage; } |
EXTERN_WEAK { CurFun.Linkage = GlobalValue::DLLImportLinkage; };
FunctionProto : DECLARE { CurFun.isDeclare = true; } FnDeclareLinkage FunctionHeaderH {
$$ = CurFun.CurrentFunction;