This revision was not accepted when it landed; it landed in state "Needs
Review".
This revision was automatically updated to reflect the committed changes.
Closed by commit rG8c4a65b9b2ca: [ubsan] Check implicit casts in ObjC for-in
statements (authored by vsk).
Repository:
rG LLVM Github Mono
ahatanak added a comment.
Thank you, LGTM.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71491/new/
https://reviews.llvm.org/D71491
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists
vsk updated this revision to Diff 273815.
vsk added a comment.
Use the `IsKindOfClass` CallArgList when emitting the check, and add a runtime
test to ensure that an objc-cast diagnostic is not emitted on correct code.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://re
vsk marked 2 inline comments as done.
vsk added inline comments.
Comment at: clang/lib/CodeGen/CGObjC.cpp:1860
+ CGM.getObjCRuntime().GetClass(*this, InterfaceTy->getDecl());
+ Args.add(RValue::get(Cls), C.getObjCClassType());
+ llvm::Value *IsClass =
-
ahatanak added inline comments.
Comment at: clang/lib/CodeGen/CGObjC.cpp:1856
+ Selector IsKindOfClassSel = C.Selectors.getSelector(
+ llvm::array_lengthof(IsKindOfClassII), &IsKindOfClassII[0]);
+ CallArgList IsKindOfClassArgs;
Can you use `Ge
vsk updated this revision to Diff 271508.
vsk added a comment.
Herald added projects: clang, Sanitizers.
Herald added a subscriber: Sanitizers.
Rebase.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71491/new/
https://reviews.llvm.org/D71491
Files:
vsk added subscribers: erik.pilkington, ahatanak.
vsk added a comment.
+ Erik and Akira for IRgen expertise.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71491/new/
https://reviews.llvm.org/D71491
___
cfe-commits mailing list
cfe-commits@l
delcypher added a comment.
@vsk The compiler-rt side seems fine to me but I'm not very familiar with the
Clang side of things. @arphaman @jfb @rjmccall any thoughts?
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71491/new/
https://reviews.llvm.org/D71491
___
vsk added a comment.
Friendly ping.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71491/new/
https://reviews.llvm.org/D71491
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
vsk added inline comments.
Comment at: compiler-rt/lib/ubsan/ubsan_value.cpp:29
+const char *__ubsan::getObjCClassName(ValueHandle Pointer) {
+#if defined(__APPLE__)
+ // We need to query the ObjC runtime for some information, but do not want
delcypher wrote:
>
vsk updated this revision to Diff 238393.
vsk marked an inline comment as done.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71491/new/
https://reviews.llvm.org/D71491
Files:
clang/docs/UndefinedBehaviorSanitizer.rst
clang/include/clang/Basic/Sanitizers.def
clang/lib/CodeGen/CGObj
delcypher added inline comments.
Comment at: compiler-rt/lib/ubsan/ubsan_value.cpp:29
+const char *__ubsan::getObjCClassName(ValueHandle Pointer) {
+#if defined(__APPLE__)
+ // We need to query the ObjC runtime for some information, but do not want
vsk wrote:
>
vsk added inline comments.
Comment at: compiler-rt/lib/ubsan/ubsan_value.cpp:29
+const char *__ubsan::getObjCClassName(ValueHandle Pointer) {
+#if defined(__APPLE__)
+ // We need to query the ObjC runtime for some information, but do not want
delcypher wrote:
>
delcypher added inline comments.
Comment at: compiler-rt/lib/ubsan/ubsan_value.cpp:29
+const char *__ubsan::getObjCClassName(ValueHandle Pointer) {
+#if defined(__APPLE__)
+ // We need to query the ObjC runtime for some information, but do not want
vsk wrote:
>
vsk updated this revision to Diff 234142.
vsk added a comment.
Ignore an objc-cast report at a given SourceLocation after it's been reported
once.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71491/new/
https://reviews.llvm.org/D71491
Files:
clang/docs/UndefinedBehaviorSanitizer.rs
vsk updated this revision to Diff 234139.
vsk added a comment.
Avoid a static initializer.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71491/new/
https://reviews.llvm.org/D71491
Files:
clang/docs/UndefinedBehaviorSanitizer.rst
clang/include/clang/Basic/Sanitizers.def
clang/lib/
vsk added inline comments.
Comment at: clang/lib/Driver/ToolChain.cpp:953
+ SanitizerKind::ImplicitConversion | SanitizerKind::Nullability |
+ SanitizerKind::LocalBounds | SanitizerKind::ObjCCast;
if (getTriple().getArch() == llvm::Triple::x86 ||
del
vsk updated this revision to Diff 234136.
vsk marked 3 inline comments as done.
vsk added a comment.
Address review feedback.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71491/new/
https://reviews.llvm.org/D71491
Files:
clang/docs/UndefinedBehaviorSanitizer.rst
clang/include/clan
delcypher added inline comments.
Comment at: clang/lib/Driver/ToolChain.cpp:953
+ SanitizerKind::ImplicitConversion | SanitizerKind::Nullability |
+ SanitizerKind::LocalBounds | SanitizerKind::ObjCCast;
if (getTriple().getArch() == llvm::Triple::x86 ||
--
delcypher added inline comments.
Comment at: compiler-rt/lib/ubsan/ubsan_value.cpp:29
+const char *__ubsan::getObjCClassName(ValueHandle Pointer) {
+#if defined(__APPLE__)
+ // We need to query the ObjC runtime for some information, but do not want
The compiler-
vsk created this revision.
vsk added reviewers: rjmccall, jfb, arphaman, delcypher.
Herald added subscribers: llvm-commits, dexonsmith.
Herald added a project: LLVM.
Check that the implicit cast from `id` used to construct the element
variable in an ObjC for-in statement is valid.
This check is i
21 matches
Mail list logo