summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-07-30 17:23:28 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2011-07-30 17:23:28 +0000
commit582ae9916ae565811b9ca7d8e6ebe91e7cdb442a (patch)
tree5ef3b33609989fd1d8162e6d4af09ec5be6c2173 /clang
parent4c6efa62e057da00d0645be3afccd922e43fa4d8 (diff)
downloadbcm5719-llvm-582ae9916ae565811b9ca7d8e6ebe91e7cdb442a.tar.gz
bcm5719-llvm-582ae9916ae565811b9ca7d8e6ebe91e7cdb442a.zip
Not sure why we bother updating FunctionDecl's EndRangeLoc in FunctionDecl::setParams.
EndRangeLoc should always be set to at least the ending paren or brace. llvm-svn: 136573
Diffstat (limited to 'clang')
-rw-r--r--clang/lib/AST/Decl.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/AST/Decl.cpp b/clang/lib/AST/Decl.cpp
index 64fd355446a..32b9a624e0e 100644
--- a/clang/lib/AST/Decl.cpp
+++ b/clang/lib/AST/Decl.cpp
@@ -1697,11 +1697,6 @@ void FunctionDecl::setParams(ASTContext &C,
void *Mem = C.Allocate(sizeof(ParmVarDecl*)*NumParams);
ParamInfo = new (Mem) ParmVarDecl*[NumParams];
memcpy(ParamInfo, NewParamInfo, sizeof(ParmVarDecl*)*NumParams);
-
- // Update source range. The check below allows us to set EndRangeLoc before
- // setting the parameters.
- if (EndRangeLoc.isInvalid() || EndRangeLoc == getLocation())
- EndRangeLoc = NewParamInfo[NumParams-1]->getLocEnd();
}
}
OpenPOWER on IntegriCloud