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 f086d80 commit efad188Copy full SHA for efad188
clang/test/Analysis/Checkers/WebKit/uncounted-obj-arg.cpp
@@ -107,7 +107,7 @@ class RefCounted {
107
return 0;
108
}
109
void *trivial15() { return static_cast<void*>(this); }
110
- unsigned long trivial16() { return reinterpret_cast<unsigned long>(this); }
+ unsigned long trivial16() { return *reinterpret_cast<unsigned long*>(this); }
111
RefCounted& trivial17() const { return const_cast<RefCounted&>(*this); }
112
RefCounted& trivial18() const { RELEASE_ASSERT(this, "this must be not null"); return const_cast<RefCounted&>(*this); }
113
void trivial19() const { return; }
0 commit comments