Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
This looks very dubious
lib/CodeGen/CGStmt.cpp : 2076
assert(CD->hasBody() && "missing CapturedDecl body");
I believe the "&&" should be a comma.
- Original Message -----
From: "Jim Cownie" <james.h.cownie@intel.com>
To: "a bataev" <a.bataev@hotmail.com>, dgregor@apple.com, hfinkel@anl.gov, cbergstrom@pathscale.com,
fraggamuffin@gmail.com, richard@metafoo.co.uk, rjmccall@gmail.com
Cc: "james h cownie" <james.h.cownie@intel.com>, cfe-commits@cs.uiuc.edu
Sent: Monday, June 9, 2014 6:13:09 AM
Subject: Re: [PATCH] Using of variable length arrays in captured statements and OpenMP constructsThis looks very dubious
lib/CodeGen/CGStmt.cpp : 2076assert(CD->hasBody() && "missing CapturedDecl body");I believe the "&&" should be a comma.
No, this looks fine (and follows the LLVM coding convention, see: http://llvm.org/docs/CodingStandards.html#assert-liberally).
-Hal
Ah, sorry, I should keep my nose out of stuff that I don't understand.
To a C programmer it looks very odd indeed, and could never assert (since the pointer to the string would be cast to a truth value, and would always be true).
I'll crawl back under my stone and get back to what I'm supposed to be working on :-)
- Jim
James Cownie <james.h.cownie@intel.com>
SSG/DPD/TCAR (Technical Computing, Analyzers and Runtimes)
Tel: +44 117 9071438
Man, I must be in a fuddle this morning. I blame it being Monday.
My logic is utterly wrong :-(
- Jim
James Cownie <james.h.cownie@intel.com>
SSG/DPD/TCAR (Technical Computing, Analyzers and Runtimes)
Tel: +44 117 9071438
Jim, no problems. :)
Best regards,
Alexey Bataev
Software Engineer
Intel Compiler Team
9 Июнь 2014 г. 15:27:28, Jim Cownie писал:
Man, I must be in a fuddle this morning. I blame it being Monday.
My logic is utterly wrong :-(
- Jim
James Cownie <james.h.cownie@intel.com>
SSG/DPD/TCAR (Technical Computing, Analyzers and Runtimes)
Tel: +44 117 9071438
LGTM
Seems like a nice approach. We might want to consider doing the same thing in lambdas at some point :)
Richard,
Thanks for the review. I can try to prepare similar patch for lambdas
in a few days.
Best regards,
Alexey Bataev
Software Engineer
Intel Compiler Team
27 Июнь 2014 г. 19:52:40, Richard Smith писал:
LGTM
Seems like a nice approach. We might want to consider doing the same thing in lambdas at some point :)