commit | b122a4bbed34ab22b4c1541ee25e5cf22f12a926 | [log] [tgz] |
---|---|---|
author | Ian Rogers <irogers@google.com> | Tue Nov 19 18:00:50 2013 -0800 |
committer | Ian Rogers <irogers@google.com> | Fri Dec 20 08:01:57 2013 -0800 |
tree | 624f16271f4481a8fd5aa2f607385f490dc7b3ae | |
parent | e40687d053b89c495b6fbeb7a766b01c9c7e039c [diff] [blame] |
Tidy up memory barriers. Change-Id: I937ea93e6df1835ecfe2d4bb7d84c24fe7fc097b
diff --git a/compiler/driver/compiler_driver.cc b/compiler/driver/compiler_driver.cc index 1124541..9cffb3c 100644 --- a/compiler/driver/compiler_driver.cc +++ b/compiler/driver/compiler_driver.cc
@@ -1404,7 +1404,7 @@ } size_t NextIndex() { - return index_.fetch_add(1); + return index_.FetchAndAdd(1); } private: