Add some type safety to GlobalObject/GlobalValue - they're always PointerTypes so...
[oota-llvm.git] / include / llvm / IR / GlobalObject.h
index 50deb0868a9c44d2e09828fd3e869c13c143a270..f0552410b61d972b0a2e6f0175bbde93f1e96b6a 100644 (file)
@@ -27,7 +27,7 @@ class GlobalObject : public GlobalValue {
   GlobalObject(const GlobalObject &) = delete;
 
 protected:
-  GlobalObject(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps,
+  GlobalObject(PointerType *Ty, ValueTy VTy, Use *Ops, unsigned NumOps,
                LinkageTypes Linkage, const Twine &Name)
       : GlobalValue(Ty, VTy, Ops, NumOps, Linkage, Name), ObjComdat(nullptr) {
     setGlobalValueSubClassData(0);