[PATCH] D58569: [libclang] Avoid crashing when getting layout info of an undeduced type.

Emilio Cobos Álvarez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 22 19:18:27 PST 2019


emilio created this revision.
Herald added subscribers: cfe-commits, arphaman.
Herald added a project: clang.

When the type is not deducible, return an error instead of crashing.

This fixes https://bugs.llvm.org/show_bug.cgi?id=40813.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D58569

Files:
  clang/include/clang-c/Index.h
  clang/test/Index/print-type-size.cpp
  clang/tools/c-index-test/c-index-test.c
  clang/tools/libclang/CXType.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58569.188024.patch
Type: text/x-patch
Size: 4238 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20190223/27c80ed8/attachment-0001.bin>


More information about the cfe-commits mailing list