When the type is not deducible, return an error instead of crashing.
This fixes https://bugs.llvm.org/show_bug.cgi?id=40813.
Paths
| Differential D58569
[libclang] Avoid crashing when getting layout info of an undeduced type. ClosedPublic Authored by emilio on Feb 22 2019, 7:17 PM.
Details Summary When the type is not deducible, return an error instead of crashing. This fixes https://bugs.llvm.org/show_bug.cgi?id=40813.
Diff Detail
Event Timeline
emilio added inline comments.
Comment Actions Huh, somehow forgot to press "Submit" this morning :)
This revision is now accepted and ready to land.Feb 26 2019, 3:57 AM Closed by commit rC354885: [libclang] Avoid crashing when getting layout info of an undeduced type. (authored by emilio). · Explain WhyFeb 26 2019, 7:03 AM This revision was automatically updated to reflect the committed changes. emilio marked an inline comment as done.
Revision Contents
Diff 188371 include/clang-c/Index.h
test/Index/print-type-size.cpp
tools/c-index-test/c-index-test.c
tools/libclang/CXType.cpp
|