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 | d9e1e57e2afa1dd426e458e0be89e0176c5b5057 (patch) | |
| tree | 13f63efdf098e54d49ae93bb0b31c4b23c5e44d6 | |
| parent | ebb10df4417e36c0a3a95d7d6f920eaa4b922cd4 (diff) | |
| download | bcm5719-llvm-d9e1e57e2afa1dd426e458e0be89e0176c5b5057.tar.gz bcm5719-llvm-d9e1e57e2afa1dd426e458e0be89e0176c5b5057.zip | |
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.
llvm-svn: 152488
| -rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index 5febad616c2..532767b64c3 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/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(); } |

