diff options
| author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-04-30 22:12:22 +0000 |
|---|---|---|
| committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2012-04-30 22:12:22 +0000 |
| commit | d8e076972f815f20204558f0605f802cd12c029c (patch) | |
| tree | fbfe014c5340008b82fbe9f4828d0d9c5f52d874 /clang/lib/CodeGen/CodeGenModule.h | |
| parent | d0d5ec4a383f280219b1ee1fbf91275620472cf1 (diff) | |
| download | bcm5719-llvm-d8e076972f815f20204558f0605f802cd12c029c.tar.gz bcm5719-llvm-d8e076972f815f20204558f0605f802cd12c029c.zip | |
Store the source range of a CXXOperatorCallExpr in the Expr object instead of
calculating it recursively.
boost::assign::tuple_list_of uses the trick of chaining call operator expressions in order to declare a "list of tuples", e.g:
std::vector<tuple> v = boost::assign::tuple_list_of(1, "foo")(2, "bar")(3, "qqq");
Due to CXXOperatorCallExpr calculating its source range recursively we would get
significant slowdowns with a large number of chained call operator expressions and the
potential for stack overflow.
rdar://11350116
llvm-svn: 155848
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions

