[llvm-commits] [dragonegg] r165745 - /dragonegg/trunk/src/DefaultABI.cpp

Duncan Sands baldrick at free.fr
Thu Oct 11 14:02:06 PDT 2012


Author: baldrick
Date: Thu Oct 11 16:02:06 2012
New Revision: 165745

URL: http://llvm.org/viewvc/llvm-project?rev=165745&view=rev
Log:
Tweak Micah's valiant attempt to fix up dragonegg compilation.  At this point
there is no pointer type floating around, just use the default address space.

Modified:
    dragonegg/trunk/src/DefaultABI.cpp

Modified: dragonegg/trunk/src/DefaultABI.cpp
URL: http://llvm.org/viewvc/llvm-project/dragonegg/trunk/src/DefaultABI.cpp?rev=165745&r1=165744&r2=165745&view=diff
==============================================================================
--- dragonegg/trunk/src/DefaultABI.cpp (original)
+++ dragonegg/trunk/src/DefaultABI.cpp Thu Oct 11 16:02:06 2012
@@ -428,8 +428,7 @@
   // that occupies storage but has no useful information, and is not passed
   // anywhere".  Happens on x86-64.
   std::vector<Type*> Elts(OrigElts);
-  unsigned AS = Ty->isPointerTy() ? cast<PointerType>(Ty)->getAddressSpace() : 0;
-  Type* wordType = getDataLayout().getPointerSize(AS) == 4 ?
+  Type* wordType = getDataLayout().getPointerSize(0) == 4 ?
     Type::getInt32Ty(getGlobalContext()) : Type::getInt64Ty(getGlobalContext());
   for (unsigned i=0, e=Elts.size(); i!=e; ++i)
     if (OrigElts[i]->isVoidTy())





More information about the llvm-commits mailing list