Skip to content

Commit efad188

Browse files
authored
Fix uncounted-obj-arg.cpp for Windows. (llvm#81903)
1 parent f086d80 commit efad188

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Analysis/Checkers/WebKit/uncounted-obj-arg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class RefCounted {
107107
return 0;
108108
}
109109
void *trivial15() { return static_cast<void*>(this); }
110-
unsigned long trivial16() { return reinterpret_cast<unsigned long>(this); }
110+
unsigned long trivial16() { return *reinterpret_cast<unsigned long*>(this); }
111111
RefCounted& trivial17() const { return const_cast<RefCounted&>(*this); }
112112
RefCounted& trivial18() const { RELEASE_ASSERT(this, "this must be not null"); return const_cast<RefCounted&>(*this); }
113113
void trivial19() const { return; }

0 commit comments

Comments
 (0)