diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2012-03-10 07:45:33 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2012-03-10 07:45:33 +0000 |
commit | 8d17681906209923fad4a02d829a857a447f137b (patch) | |
tree | 972b151b51ea5168cf64f4484d22407bf0cd69c3 /lib/Sema/SemaDecl.cpp | |
parent | f52757d63f90e0d03eba20318f6036db944ba50c (diff) |
Could not find this in C99. Perhaps this rule comes from a DR, but in any case
please annotate it with a note explaining why this wrong-seeming behaviour is
correct.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152488 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDecl.cpp')
-rw-r--r-- | lib/Sema/SemaDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaDecl.cpp b/lib/Sema/SemaDecl.cpp index 5febad616c..532767b64c 100644 --- a/lib/Sema/SemaDecl.cpp +++ b/lib/Sema/SemaDecl.cpp @@ -8029,6 +8029,7 @@ Decl *Sema::ActOnTag(Scope *S, unsigned TagSpec, TagUseKind TUK, } else if (S->isFunctionPrototypeScope()) { // If this is an enum declaration in function prototype scope, set its // initial context to the translation unit. + // FIXME: [citation needed] SearchDC = Context.getTranslationUnitDecl(); } |