Change the PointerType api for creating pointer types. The old functionality of Point...
[oota-llvm.git] / utils / TableGen / IntrinsicEmitter.cpp
index 47569f3d412ba5b69e511be092c9f34a14d9567d..e19d4d8ad3ee4e82f1d27830360f4f9e814f50a0 100644 (file)
@@ -158,7 +158,7 @@ static void EmitTypeGenerate(std::ostream &OS, Record *ArgType,
     EmitTypeForValueType(OS, MVT::getVectorElementType(VT));
     OS << ", " << MVT::getVectorNumElements(VT) << ")";
   } else if (VT == MVT::iPTR) {
-    OS << "PointerType::get(";
+    OS << "PointerType::getUnqual(";
     EmitTypeGenerate(OS, ArgType->getValueAsDef("ElTy"), ArgNo);
     OS << ")";
   } else if (VT == MVT::isVoid) {