[PATCH] D131466: [clang] add APValue type check in `TryPrintAsStringLiteral`
YingChi Long via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 9 10:19:28 PDT 2022
inclyc added inline comments.
================
Comment at: clang/test/SemaCXX/try-print-as-string-literal-type-check.cpp:7
+struct X {
+ char arr[2];
+ constexpr X() {}
----------------
The `ArrayRef<APValue> Inits` points to here does not ends with `Int`, so `!Inits.back().getInt()` gets assertion failed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131466/new/
https://reviews.llvm.org/D131466
More information about the cfe-commits
mailing list