This patch defines __OBJC_BOOL_IS_BOOL for C code as well, since Objective-C's BOOL can be also used by C code.
Details
Details
- Reviewers
t.p.northover mehdi_amini gparker42 - Commits
- rG41d13152b139: [Frontend] The macro that describes the Objective-C bool type should be defined…
rC292617: [Frontend] The macro that describes the Objective-C bool type should
rL292617: [Frontend] The macro that describes the Objective-C bool type should
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
The "!LangOpts.CPlusPlus" doesn't make sense to me. You're presumably defining this macro in C because the Objective-C runtime is usable from C, but that same logic applies to C++ code. It seems like we should be defining this macro unconditionally.
Comment Actions
That's true. I was initially reluctant to define it for C++ as well since this macro is available on all platforms, but I guess there's no way around this.