[cfe-commits] r73930 - /cfe/trunk/lib/AST/Decl.cpp
Argiris Kirtzidis
akyrtzi at gmail.com
Mon Jun 22 17:42:00 PDT 2009
Author: akirtzidis
Date: Mon Jun 22 19:42:00 2009
New Revision: 73930
URL: http://llvm.org/viewvc/llvm-project?rev=73930&view=rev
Log:
Add a comment.
Modified:
cfe/trunk/lib/AST/Decl.cpp
Modified: cfe/trunk/lib/AST/Decl.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/Decl.cpp?rev=73930&r1=73929&r2=73930&view=diff
==============================================================================
--- cfe/trunk/lib/AST/Decl.cpp (original)
+++ cfe/trunk/lib/AST/Decl.cpp Mon Jun 22 19:42:00 2009
@@ -494,7 +494,8 @@
ParamInfo = new (Mem) ParmVarDecl*[NumParams];
memcpy(ParamInfo, NewParamInfo, sizeof(ParmVarDecl*)*NumParams);
- // Update source range.
+ // Update source range. The check below allows us to set EndRangeLoc before
+ // setting the parameters.
if (EndRangeLoc < NewParamInfo[NumParams-1]->getLocEnd())
EndRangeLoc = NewParamInfo[NumParams-1]->getLocEnd();
}
More information about the cfe-commits
mailing list