Fix Type info bug for 'llvm bool'

This commit is contained in:
gingerBill
2017-12-23 09:06:49 +00:00
parent 423775d50e
commit 4f12c118a5
2 changed files with 5 additions and 1 deletions

View File

@@ -1088,6 +1088,9 @@ void check_remove_expr_info(CheckerInfo *i, AstNode *expr) {
isize type_info_index(CheckerInfo *info, Type *type, bool error_on_failure) {
type = default_type(type);
if (type == t_llvm_bool) {
type = t_bool;
}
isize entry_index = -1;
HashKey key = hash_type(type);