diff options
author | David Majnemer <david.majnemer@gmail.com> | 2016-05-24 16:09:25 +0000 |
---|---|---|
committer | David Majnemer <david.majnemer@gmail.com> | 2016-05-24 16:09:25 +0000 |
commit | a38c9f1fa58abdbee68672fe7e3748c07962964b (patch) | |
tree | 545b8166261e176a8b9c866e1391294a26dcbb62 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | ef88dc8fe4d28976ccd157493066a7f57ba98ce8 (diff) | |
download | llvm-a38c9f1fa58abdbee68672fe7e3748c07962964b.zip llvm-a38c9f1fa58abdbee68672fe7e3748c07962964b.tar.gz llvm-a38c9f1fa58abdbee68672fe7e3748c07962964b.tar.bz2 |
[MS Volatile] Don't make volatile loads/stores to underaligned objects atomic
Underaligned atomic LValues require libcalls which MSVC doesn't have.
MSVC doesn't seem to consider such operations as requiring a barrier
anyway.
This fixes PR27843.
llvm-svn: 270576
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index 0100ac3..9f0fdd3 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -2496,7 +2496,6 @@ public: void EmitAtomicInit(Expr *E, LValue lvalue); bool LValueIsSuitableForInlineAtomic(LValue Src); - bool typeIsSuitableForInlineAtomic(QualType Ty, bool IsVolatile) const; RValue EmitAtomicLoad(LValue LV, SourceLocation SL, AggValueSlot Slot = AggValueSlot::ignored()); |