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 | e070fd2ac88f067f3c78a9adc9f2a7d58c0b127b (patch) | |
tree | 4ec97af700256a079aa1b662e5f509019c9cc0d7 /clang/lib/CodeGen/CodeGenModule.h | |
parent | ae819500a16af284fe03e2951be714f6b89ad56f (diff) | |
download | llvm-e070fd2ac88f067f3c78a9adc9f2a7d58c0b127b.zip llvm-e070fd2ac88f067f3c78a9adc9f2a7d58c0b127b.tar.gz llvm-e070fd2ac88f067f3c78a9adc9f2a7d58c0b127b.tar.bz2 |
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.
llvm-svn: 150793
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 9b6931d..fa1830a 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/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); |