[all-commits] [llvm/llvm-project] 1deee5: Fix crash when emitting NullReturn guards for func...
Jon Roelofs via All-commits
all-commits at lists.llvm.org
Thu Jan 21 14:30:08 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 1deee5cacbb76578367186d7ff2937b6fa79b827
https://github.com/llvm/llvm-project/commit/1deee5cacbb76578367186d7ff2937b6fa79b827
Author: Jon Roelofs <jonathan_roelofs at apple.com>
Date: 2021-01-21 (Thu, 21 Jan 2021)
Changed paths:
M clang/lib/CodeGen/CGObjCMac.cpp
A clang/test/CodeGenObjC/null-check-bool-ret.m
Log Message:
-----------
Fix crash when emitting NullReturn guards for functions returning BOOL
CodeGenModule::EmitNullConstant() creates constants with their "in memory"
type, not their "in vregs" type. The one place where this difference matters is
when the type is _Bool, as that is an i1 when in vregs and an i8 in memory.
Fixes: rdar://73361264
More information about the All-commits
mailing list