[PATCH] Handle captured statements for predefined expressions
Erik Olofsson
erik.olofsson at hansoft.se
Sun Sep 8 12:48:57 PDT 2013
I think this commit broke lambdas inside templated functions where codegen asserts:
template <typename Type>
bool Func(Type Value) {
auto Function = []() {
return __FUNCTION__;
};
return Function();
}
int main() {
return Func(1);
}
-
(cast<ConstantArrayType>(E->getType())->getSize() - 1 == FunctionName.size() && "Computed __func__ length differs from type!")
http://llvm-reviews.chandlerc.com/D1491
COMMIT
http://llvm-reviews.chandlerc.com/rL189219
More information about the cfe-commits
mailing list