Fznamznon added inline comments.
Comment at: clang/test/SemaCXX/invalid-if-constexpr.cpp:7
+}
+void a() { if constexpr (__adl_swap<>) {}} // expected-error{{use of
undeclared identifier '__adl_swap'; did you mean '__sync_swap'?}} \
+ //
zixuan-wu added inline comments.
Comment at: clang/test/SemaCXX/invalid-if-constexpr.cpp:7
+}
+void a() { if constexpr (__adl_swap<>) {}} // expected-error{{use of
undeclared identifier '__adl_swap'; did you mean '__sync_swap'?}} \
+ //
This revision was automatically updated to reflect the committed changes.
Closed by commit rG9d9046f06d55: [clang] Do not crash after suggesting typo
correction to constexpr if condition (authored by Fznamznon).
Changed prior to commit:
https://reviews.llvm.org/D148206?vs=513497=514174#toc
aaron.ballman accepted this revision.
aaron.ballman added a comment.
LGTM!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148206/new/
https://reviews.llvm.org/D148206
___
cfe-commits mailing list
Fznamznon added a comment.
@aaron.ballman , are you ok with the change?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148206/new/
https://reviews.llvm.org/D148206
___
cfe-commits mailing list
Fznamznon updated this revision to Diff 513497.
Fznamznon added a comment.
Rebase, fix format
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148206/new/
https://reviews.llvm.org/D148206
Files:
clang/docs/ReleaseNotes.rst
shafik added a comment.
LGTM
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148206/new/
https://reviews.llvm.org/D148206
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
Fznamznon updated this revision to Diff 513290.
Fznamznon added a comment.
Use std::optional
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148206/new/
https://reviews.llvm.org/D148206
Files:
clang/docs/ReleaseNotes.rst
Fznamznon added inline comments.
Comment at: clang/include/clang/Sema/Sema.h:12855
+!Condition.get()->isValueDependent() &&
+Condition.get()->isIntegerConstantExpr(S.Context)),
KnownValue(HasKnownValue &&
Fznamznon updated this revision to Diff 513276.
Fznamznon added a comment.
Rebase, evaluate the expression only only time
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148206/new/
https://reviews.llvm.org/D148206
Files:
aaron.ballman added inline comments.
Comment at: clang/include/clang/Sema/Sema.h:12855
+!Condition.get()->isValueDependent() &&
+Condition.get()->isIntegerConstantExpr(S.Context)),
KnownValue(HasKnownValue &&
Fznamznon created this revision.
Herald added a project: All.
Fznamznon requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
In some cases non-null non-constant yet valid expression may reach point where
`ConditionResult` is created. For
12 matches
Mail list logo