[cfe-commits] r107196 - /cfe/trunk/lib/CodeGen/ABIInfo.h

Chris Lattner sabre at nondot.org
Tue Jun 29 12:21:36 PDT 2010


Author: lattner
Date: Tue Jun 29 14:21:36 2010
New Revision: 107196

URL: http://llvm.org/viewvc/llvm-project?rev=107196&view=rev
Log:
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.

Modified:
    cfe/trunk/lib/CodeGen/ABIInfo.h

Modified: cfe/trunk/lib/CodeGen/ABIInfo.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/ABIInfo.h?rev=107196&r1=107195&r2=107196&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/ABIInfo.h (original)
+++ cfe/trunk/lib/CodeGen/ABIInfo.h Tue Jun 29 14:21:36 2010
@@ -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 @@
 
   private:
     Kind TheKind;
-    const llvm::Type *TypeData;
+    llvm::PATypeHolder TypeData;
     unsigned UIntData;
     bool BoolData;
 





More information about the cfe-commits mailing list