aboutsummaryrefslogtreecommitdiff
path: root/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-08-25 23:42:51 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-08-25 23:42:51 +0000
commit8028bfaa96f3dbe224cc3766a04e9a68f22e4a64 (patch)
tree57764d6a9ab827a787962a041a3029bd6c448c0f /lib/AST/ASTContext.cpp
parent22fd4baf2eba2103e2b41e463f1a5f6486c398fb (diff)
Revert r112043, static volatiles are removed by the optimizer. Thanks Chris!
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112112 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/ASTContext.cpp')
-rw-r--r--lib/AST/ASTContext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/AST/ASTContext.cpp b/lib/AST/ASTContext.cpp
index e9ca7ddb48..37ef59cc36 100644
--- a/lib/AST/ASTContext.cpp
+++ b/lib/AST/ASTContext.cpp
@@ -5606,10 +5606,6 @@ bool ASTContext::DeclMustBeEmitted(const Decl *D) {
if (VD->isThisDeclarationADefinition() == VarDecl::DeclarationOnly)
return false;
- // Always emit volatiles.
- if (VD->getType().isVolatileQualified())
- return true;
-
// Structs that have non-trivial constructors or destructors are required.
// FIXME: Handle references.