Change PointerType::get -> getUnqual

llvm-svn: 57032
This commit is contained in:
Daniel Dunbar 2008-10-03 22:17:25 +00:00
parent 8517dfad9d
commit b9e03a65cd
1 changed files with 2 additions and 2 deletions

View File

@ -1956,7 +1956,7 @@ AllocaInst* instToReplace = ...;
BasicBlock::iterator ii(instToReplace);
ReplaceInstWithValue(instToReplace->getParent()->getInstList(), ii,
Constant::getNullValue(PointerType::get(Type::Int32Ty)));
Constant::getNullValue(PointerType::getUnqual(Type::Int32Ty)));
</pre></div></li>
<li><tt>ReplaceInstWithInst</tt>
@ -2091,7 +2091,7 @@ To build this, use the following LLVM APIs:
// <i>Create the initial outer struct</i>
<a href="#PATypeHolder">PATypeHolder</a> StructTy = OpaqueType::get();
std::vector&lt;const Type*&gt; Elts;
Elts.push_back(PointerType::get(StructTy));
Elts.push_back(PointerType::getUnqual(StructTy));
Elts.push_back(Type::Int32Ty);
StructType *NewSTy = StructType::get(Elts);