aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2012-02-17 06:48:11 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2012-02-17 06:48:11 +0000
commita9b21d22bb9337649723a8477b5cb15f83451e7d (patch)
treec6d90f7d3c162b2c7713add536ff8f1320ebc7ee /lib/CodeGen/CodeGenModule.h
parente15c71236252c21a77c8a406246053e1cbb63ffa (diff)
Bug fix: do not emit static const local variables with mutable members
as constants. Refactor and simplify all the separate checks for whether a type can be emitted as a constant. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenModule.h')
-rw-r--r--lib/CodeGen/CodeGenModule.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index 9b6931d5aa..fa1830a386 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -448,6 +448,8 @@ public:
llvm::MDNode *getTBAAInfo(QualType QTy);
+ bool isTypeConstant(QualType QTy, bool ExcludeCtorDtor);
+
static void DecorateInstruction(llvm::Instruction *Inst,
llvm::MDNode *TBAAInfo);