Debug Info IR: Switch DIObjCProperty to use DITypeRef.
[oota-llvm.git] / lib / IR / DIBuilder.cpp
index b1925ea5c48f66e43ebf5cc17e8312c25622e1fe..f23f280c978ac9b1d5c1c44c228c11650678f647 100644 (file)
@@ -327,7 +327,8 @@ DIBuilder::createObjCProperty(StringRef Name, DIFile *File, unsigned LineNumber,
                               StringRef GetterName, StringRef SetterName,
                               unsigned PropertyAttributes, DIType *Ty) {
   return DIObjCProperty::get(VMContext, Name, File, LineNumber, GetterName,
-                             SetterName, PropertyAttributes, Ty);
+                             SetterName, PropertyAttributes,
+                             DITypeRef::get(Ty));
 }
 
 DITemplateTypeParameter *