[PATCH] D27607: [ubsan] Treat ObjC's BOOL as if its range is always {0, 1}
Alex Lorenz via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 9 04:19:17 PST 2016
arphaman added inline comments.
================
Comment at: lib/CodeGen/CGExpr.cpp:1224
+ const LangOptions &LO) {
+ if (!LO.ObjC1 && !LO.ObjC2)
+ return false;
----------------
LangOptions.ObjC1 should be always set if LangOptions.ObjC2 is set, so the second check is redundant I think.
https://reviews.llvm.org/D27607
More information about the cfe-commits
mailing list