diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-06-13 23:01:12 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-06-13 23:01:12 +0000 |
commit | 1e692ace08959399794363e77499b73da5494af9 (patch) | |
tree | f3b2a525ece7b5a7ad2df5328e1d46db215aef4c /lib/CodeGen/CGStmt.cpp | |
parent | ed6c70f63067ec06757aa019750765b80e23b423 (diff) |
Basic support for volatile loads and stores. Stores the volatile
qualifier in the lvalue, and changes lvalue loads/stores to honor
the volatile flag. Places which need some further attention are marked
with FIXMEs.
Patch by Cédric Venet.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@52264 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGStmt.cpp')
-rw-r--r-- | lib/CodeGen/CGStmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGStmt.cpp b/lib/CodeGen/CGStmt.cpp index 067d6ebd09..736fad0d2e 100644 --- a/lib/CodeGen/CGStmt.cpp +++ b/lib/CodeGen/CGStmt.cpp @@ -808,6 +808,6 @@ void CodeGenFunction::EmitAsmStmt(const AsmStmt &S) { llvm::InlineAsm::get(FTy, AsmString, Constraints, S.isVolatile() || S.getNumOutputs() == 0); llvm::Value *Result = Builder.CreateCall(IA, Args.begin(), Args.end(), ""); - if (ResultAddr) + if (ResultAddr) // FIXME: volatility Builder.CreateStore(Result, ResultAddr); } |