This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbce8b3c18304: [clang][Interp] Implement C++ Range-for loops
(authored by tbaeder).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
aaron.ballman accepted this revision.
aaron.ballman added a comment.
This revision is now accepted and ready to land.
LGTM; I suspect there's still lifetime issues we are not catching here, but
this is incrementally forward progress and we can test the lifetime issues once
we have more of the in
tbaeder added a comment.
Ping
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140803/new/
https://reviews.llvm.org/D140803
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
aaron.ballman added inline comments.
Comment at: clang/test/AST/Interp/loops.cpp:278
+
+namespace RangeForLoop {
+ constexpr int localArray() {
tbaeder wrote:
> aaron.ballman wrote:
> > You should also add failure tests where the range-based for loop is not
> >
tbaeder updated this revision to Diff 491674.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140803/new/
https://reviews.llvm.org/D140803
Files:
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
clang/lib/AST/Interp/ByteCodeStmtGen.h
clang/test/AST/Interp/loops.cpp
Index: clang/test/AST/Int
tbaeder marked an inline comment as done.
tbaeder added inline comments.
Comment at: clang/test/AST/Interp/loops.cpp:278
+
+namespace RangeForLoop {
+ constexpr int localArray() {
aaron.ballman wrote:
> You should also add failure tests where the range-based for
tbaeder marked an inline comment as done.
tbaeder added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeStmtGen.cpp:418-419
+ this->emitLabel(IncLabel);
+ if (Inc && !this->discard(Inc))
+return false;
+ if (!this->jump(CondLabel))
aaron.ballman
tbaeder updated this revision to Diff 491643.
tbaeder marked an inline comment as done.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D140803/new/
https://reviews.llvm.org/D140803
Files:
clang/lib/AST/Interp/ByteCodeStmtGen.cpp
clang/lib/AST/Interp/ByteCodeStmtGen.h
clang/test/AST/I
aaron.ballman added inline comments.
Comment at: clang/lib/AST/Interp/ByteCodeStmtGen.cpp:404-409
+ if (Cond) {
+if (!this->visitBool(Cond))
+ return false;
+if (!this->jumpFalse(EndLabel))
+ return false;
+ }
Under what circumstances is there
tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Repository:
rG LLVM Github Monorepo
https://revi
10 matches
Mail list logo