[PATCH] D71042: [DebugInfo] Ensure fallback artificial location is available for cleanups
Adrian Prantl via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 5 09:57:06 PST 2019
aprantl added a comment.
Do we know why EndLoc is invalid?
================
Comment at: clang/test/CodeGenObjCXX/property-object-cleanup.mm:3
+// RUN: %s -emit-llvm -o - | FileCheck %s
+
+ at interface NSObject
----------------
Add a comment
`// Test that call in the cleanup block have a valid debug location.`
================
Comment at: clang/test/CodeGenObjCXX/property-object-cleanup.mm:4
+
+ at interface NSObject
++ (id)alloc;
----------------
FYI there is `__attribute__((objc_root_class))` to silence the warning this causes.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71042/new/
https://reviews.llvm.org/D71042
More information about the cfe-commits
mailing list