aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2017-12-23 09:06:49 +0000
committergingerBill <bill@gingerbill.org>2017-12-23 09:06:49 +0000
commit4f12c118a54d9aeed58a33246d8288147f56d86a (patch)
tree7c490d223a9bb35b2c330702efdf307faecfb568 /src/checker.cpp
parent423775d50efd5084fc477f5fe18bb650dac4240c (diff)
Fix Type info bug for 'llvm bool'
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index f0ea6ff65..cf1f39860 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -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);