[llvm-commits] [poolalloc] r78609 - /poolalloc/trunk/lib/rDSA/DataStructure.cpp
Andrew Lenharth
alenhar2 at cs.uiuc.edu
Mon Aug 10 15:43:23 PDT 2009
Author: alenhar2
Date: Mon Aug 10 17:43:23 2009
New Revision: 78609
URL: http://llvm.org/viewvc/llvm-project?rev=78609&view=rev
Log:
get up to api
Modified:
poolalloc/trunk/lib/rDSA/DataStructure.cpp
Modified: poolalloc/trunk/lib/rDSA/DataStructure.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/rDSA/DataStructure.cpp?rev=78609&r1=78608&r2=78609&view=diff
==============================================================================
--- poolalloc/trunk/lib/rDSA/DataStructure.cpp (original)
+++ poolalloc/trunk/lib/rDSA/DataStructure.cpp Mon Aug 10 17:43:23 2009
@@ -572,7 +572,7 @@
STy = cast<StructType>(NewTy);
nt.insert(nt.end(), STy->element_begin(), STy->element_end());
//and merge
- STy = StructType::get(nt);
+ STy = StructType::get(STy->getContext(), nt);
DOUT << "Trying with: " << *STy << "\n";
return mergeTypeInfo(STy, 0);
}
@@ -596,7 +596,7 @@
nt.push_back(STy->getElementType(x));
nt.push_back(NewTy);
//and merge
- STy = StructType::get(nt);
+ STy = StructType::get(STy->getContext(), nt);
DOUT << "Trying with: " << *STy << "\n";
return mergeTypeInfo(STy, 0);
}
More information about the llvm-commits
mailing list