Skip to content

Commit

Permalink
Add some type safety to GlobalObject/GlobalValue - they're always Poi…
Browse files Browse the repository at this point in the history
…nterTypes so let's type them that way.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234189 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
dwblaikie committed Apr 6, 2015
1 parent 05652b6 commit e2b7e60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/llvm/IR/GlobalObject.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion include/llvm/IR/GlobalValue.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class GlobalValue : public Constant {
};

protected:
GlobalValue(Type *Ty, ValueTy VTy, Use *Ops, unsigned NumOps,
GlobalValue(PointerType *Ty, ValueTy VTy, Use *Ops, unsigned NumOps,
LinkageTypes Linkage, const Twine &Name)
: Constant(Ty, VTy, Ops, NumOps), Linkage(Linkage),
Visibility(DefaultVisibility), UnnamedAddr(0),
Expand Down

0 comments on commit e2b7e60

Please sign in to comment.