[Symbol] GetTypeBitAlign() should return None in case of failure.
authorDavide Italiano <davide@freebsd.org>
Mon, 12 Aug 2019 20:03:19 +0000 (20:03 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 12 Aug 2019 20:03:19 +0000 (20:03 +0000)
commit36f13e49127e56d6db4aeb76c0bbfacab1988157
tree30444a46b609ed4b3055d0b4059fbd1fcfa6d454
parentd2e493c3378b4b61e16109c67568f5d642f3c3a1
[Symbol] GetTypeBitAlign() should return None in case of failure.

Summary:
And not `zero`. This is the last API needed to be converted to
an Optional<T>.

Reviewers: xiaobai, compnerd

Subscribers: lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D66093

llvm-svn: 368614
lldb/include/lldb/Symbol/ClangASTContext.h
lldb/include/lldb/Symbol/CompilerType.h
lldb/include/lldb/Symbol/TypeSystem.h
lldb/source/Expression/Materializer.cpp
lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
lldb/source/Symbol/ClangASTContext.cpp
lldb/source/Symbol/CompilerType.cpp