summaryrefslogtreecommitdiffstats
path: root/clang/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
commit1f5cfb6446516051253875ede67402d530c1d783 (patch)
treef6d351a56522d4d11106efb75f4fcd50be676382 /clang/lib/AST/ASTContext.cpp
parent9f8b4518761b3701b1eb2607fe4ebea14f6ea1f4 (diff)
downloadbcm5719-llvm-1f5cfb6446516051253875ede67402d530c1d783.tar.gz
bcm5719-llvm-1f5cfb6446516051253875ede67402d530c1d783.zip
Revert r112043, static volatiles are removed by the optimizer. Thanks Chris!
llvm-svn: 112112
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index e9ca7ddb488..37ef59cc36f 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud