SuccessChanges

Summary

  1. [SystemZ] Set getExtendForAtomicOps to ISD::ANY_EXTEND (details)
  2. [analyzer]  Use Optional as a return type of StoreManager::castRegion (details)
Commit c123c178b26ea38a1035093edfa430256bfd1e64 by ulrich.weigand
[SystemZ] Set getExtendForAtomicOps to ISD::ANY_EXTEND

The implementation of subword atomics does not actually
guarantee the result is zero-extended, which now caused
build bot failures after https://reviews.llvm.org/D101342
was landed.
The file was modifiedllvm/lib/Target/SystemZ/SystemZISelLowering.h
Commit fae3534b3056bb96d26a6d1b6e7d6a2ccaf4fab1 by dpetrov
[analyzer]  Use Optional as a return type of StoreManager::castRegion

Summary: Make StoreManager::castRegion function usage safier. Replace `const MemRegion *` with `Optional<const MemRegion *>`. Simplified one of related test cases due to suggestions in D101635.

Differential Revision: https://reviews.llvm.org/D103319
The file was modifiedclang/test/Analysis/casts.c
The file was modifiedclang/lib/StaticAnalyzer/Core/SValBuilder.cpp
The file was modifiedclang/lib/StaticAnalyzer/Core/Store.cpp
The file was modifiedclang/include/clang/StaticAnalyzer/Core/PathSensitive/Store.h