[cfe-commits] r152488 - /cfe/trunk/lib/Sema/SemaDecl.cpp
Nick Lewycky
nicholas at mxc.ca
Fri Mar 9 23:45:33 PST 2012
Author: nicholas
Date: Sat Mar 10 01:45:33 2012
New Revision: 152488
URL: http://llvm.org/viewvc/llvm-project?rev=152488&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
Modified: cfe/trunk/lib/Sema/SemaDecl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDecl.cpp?rev=152488&r1=152487&r2=152488&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDecl.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDecl.cpp Sat Mar 10 01:45:33 2012
@@ -8029,6 +8029,7 @@
} 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();
}
More information about the cfe-commits
mailing list