diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2011-10-11 02:20:01 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2011-10-11 02:20:01 +0000 |
| commit | df14b3a8377fd020857ea6301d572d76c5a21221 (patch) | |
| tree | 46eb29fa0be24fdcce2916d35e6e4c0b1e59e63c /clang/lib/CodeGen/CGExprAgg.cpp | |
| parent | 8782734bccd44f0bdce89b78606082fae9aabd74 (diff) | |
| download | bcm5719-llvm-df14b3a8377fd020857ea6301d572d76c5a21221.tar.gz bcm5719-llvm-df14b3a8377fd020857ea6301d572d76c5a21221.zip | |
Initial implementation of __atomic_* (everything except __atomic_is_lock_free).
llvm-svn: 141632
Diffstat (limited to 'clang/lib/CodeGen/CGExprAgg.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CGExprAgg.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGExprAgg.cpp b/clang/lib/CodeGen/CGExprAgg.cpp index ff82bfdc48a..97754d5c0ba 100644 --- a/clang/lib/CodeGen/CGExprAgg.cpp +++ b/clang/lib/CodeGen/CGExprAgg.cpp @@ -154,6 +154,9 @@ public: void EmitNullInitializationToLValue(LValue Address); // case Expr::ChooseExprClass: void VisitCXXThrowExpr(const CXXThrowExpr *E) { CGF.EmitCXXThrowExpr(E); } + void VisitAtomicExpr(AtomicExpr *E) { + CGF.EmitAtomicExpr(E, EnsureSlot(E->getType()).getAddr()); + } }; } // end anonymous namespace. |

