We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 35467bc commit 43199faCopy full SHA for 43199fa
swift/extractor/trap/TrapLabelStore.h
@@ -12,8 +12,9 @@
12
13
namespace codeql {
14
15
-// the following is needed to avoid the problem of subclass pointers not necessarily coinciding
+// The following is needed to avoid the problem of subclass pointers not necessarily coinciding
16
// with superclass ones in case of multiple inheritance
17
+// The interesting part here is implicit conversion from a derived class pointer to the parameter
18
inline const swift::Decl* getCanonicalPointer(const swift::Decl* e) {
19
return e;
20
}
@@ -53,6 +54,7 @@ class TrapLabelStore {
53
54
55
56
private:
57
+ // TODO: consider std::variant or llvm::PointerUnion instead of `void *`
58
std::unordered_map<const void*, UntypedTrapLabel> store_;
59
};
60
0 commit comments