Remove creation of out-of-bounds value of enumeration type (resulting in UB).
authorRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 8 Dec 2017 23:29:59 +0000 (23:29 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Fri, 8 Dec 2017 23:29:59 +0000 (23:29 +0000)
commit354abec3e6b6132c9456de39951e8de0632771cc
tree191681e24af3adddd85524ec72439ac5c192d3f5
parenta5370fb82c8e2f9e7676a78677d2730b2512a082
Remove creation of out-of-bounds value of enumeration type (resulting in UB).

Also remove unnecessary initialization of out-parameters with this value, so
that MSan is able to catch errors appropriately.

llvm-svn: 320212
clang/include/clang/AST/Expr.h
clang/include/clang/AST/OperationKinds.h
clang/lib/ASTMatchers/Dynamic/Marshallers.h
clang/lib/Sema/Sema.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaExprCXX.cpp