From e070fd2ac88f067f3c78a9adc9f2a7d58c0b127b Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Fri, 17 Feb 2012 06:48:11 +0000 Subject: 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 --- clang/lib/CodeGen/CodeGenModule.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/CodeGen/CodeGenModule.h') 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); -- cgit v1.1