diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-29 19:21:36 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-29 19:21:36 +0000 |
commit | 958c53c369b2e96b7638f170a3fcb4ff43382ff1 (patch) | |
tree | 2ac0f05deac728f3b9d8dea5207ad125361d4b38 /lib/CodeGen/ABIInfo.h | |
parent | ed8407692d47833abddd31a8cf30bf560e771c9b (diff) |
change ABIArgInfo to hold its llvm type with PATypeHolder so that
it doesn't dangle as types get refined. This fixes Shootout-C++/lists1
and probably also PR7522.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@107196 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/ABIInfo.h')
-rw-r--r-- | lib/CodeGen/ABIInfo.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/ABIInfo.h b/lib/CodeGen/ABIInfo.h index c1efd056c7..85524acbe1 100644 --- a/lib/CodeGen/ABIInfo.h +++ b/lib/CodeGen/ABIInfo.h @@ -11,11 +11,9 @@ #define CLANG_CODEGEN_ABIINFO_H #include "clang/AST/Type.h" - -#include <cassert> +#include "llvm/Type.h" namespace llvm { - class Type; class Value; class LLVMContext; } @@ -70,7 +68,7 @@ namespace clang { private: Kind TheKind; - const llvm::Type *TypeData; + llvm::PATypeHolder TypeData; unsigned UIntData; bool BoolData; |