SuccessChanges

Summary

  1. CodeGen: set correct result for atomic compound expressions (details)
Commit 10e0d64337d64ebdb658bf9108bd9bb48fb5390c by Tim Northover
CodeGen: set correct result for atomic compound expressions
Atomic compound expressions try to use atomicrmw if possible, but this
path doesn't set the Result variable, leaving it to crash in later code
if anything ever tries to use the result of the expression. This fixes
that issue by recalculating the new value based on the old one
atomically loaded.
The file was modifiedclang/lib/CodeGen/CGExprScalar.cpp
The file was modifiedclang/test/CodeGen/atomic_ops.c