diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-17 06:48:11 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-02-17 06:48:11 +0000 |
commit | a9b21d22bb9337649723a8477b5cb15f83451e7d (patch) | |
tree | c6d90f7d3c162b2c7713add536ff8f1320ebc7ee /lib/CodeGen/CodeGenModule.h | |
parent | e15c71236252c21a77c8a406246053e1cbb63ffa (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.h | 2 |
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); |