llvm-project/clang/lib/StaticAnalyzer/Checkers/UninitializedObject
Kristof Umann c21ec00d28 [analyzer][UninitializedObjectChecker] PR41611: Regard vector types as primitive
https://bugs.llvm.org/show_bug.cgi?id=41611

Similarly to D61106, the checker ran over an llvm_unreachable for vector types:

struct VectorSizeLong {
  VectorSizeLong() {}
  __attribute__((__vector_size__(16))) long x;
};

void __vector_size__LongTest() {
  VectorSizeLong v;
}
Since, according to my short research,

"The vector_size attribute is only applicable to integral and float scalars,
although arrays, pointers, and function return values are allowed in conjunction
with this construct."
[src: https://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/Vector-Extensions.html#Vector-Extensions]

vector types are safe to regard as primitive.

Differential Revision: https://reviews.llvm.org/D61246

llvm-svn: 359539
2019-04-30 08:47:56 +00:00
..
UninitializedObject.h [analyzer][UninitializedObjectChecker] PR41611: Regard vector types as primitive 2019-04-30 08:47:56 +00:00
UninitializedObjectChecker.cpp [analyzer] Emit an error rather than assert on invalid checker option input 2019-03-08 16:00:42 +00:00
UninitializedPointee.cpp Update the file headers across all of the LLVM projects in the monorepo 2019-01-19 08:50:56 +00:00