[PATCH] D49199: [analyzer][UninitializedObjectChecker] Pointer/reference objects are dereferenced according to dynamic type
Umann Kristóf via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 11 12:21:00 PDT 2018
Szelethus added inline comments.
================
Comment at: lib/StaticAnalyzer/Checkers/UninitializedObjectChecker.cpp:591-609
+// TODO: This function constructs an incorrect string if a void pointer is a
+// part of the chain:
+//
+// struct B { int x; }
+//
+// struct A {
+// void *vptr;
----------------
I already have a fix for this, but I want to be extra sure, so I'm running the checker on LLVM to see whether anything breaks.
This is also important for `nonloc::LocAsInteger`, which I'm going add fix in yet another patch.
Repository:
rC Clang
https://reviews.llvm.org/D49199
More information about the cfe-commits
mailing list