Skip to content

Commit

Permalink
Fix uncounted-obj-arg.cpp for Windows. (#81903)
Browse files Browse the repository at this point in the history
  • Loading branch information
rniwa committed Feb 15, 2024
1 parent f086d80 commit efad188
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clang/test/Analysis/Checkers/WebKit/uncounted-obj-arg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class RefCounted {
return 0;
}
void *trivial15() { return static_cast<void*>(this); }
unsigned long trivial16() { return reinterpret_cast<unsigned long>(this); }
unsigned long trivial16() { return *reinterpret_cast<unsigned long*>(this); }
RefCounted& trivial17() const { return const_cast<RefCounted&>(*this); }
RefCounted& trivial18() const { RELEASE_ASSERT(this, "this must be not null"); return const_cast<RefCounted&>(*this); }
void trivial19() const { return; }
Expand Down

0 comments on commit efad188

Please sign in to comment.