diff options
Diffstat (limited to 'include/llvm/IR/GlobalAlias.h')
-rw-r--r-- | include/llvm/IR/GlobalAlias.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/IR/GlobalAlias.h b/include/llvm/IR/GlobalAlias.h index ad02996e2d..5aa4261256 100644 --- a/include/llvm/IR/GlobalAlias.h +++ b/include/llvm/IR/GlobalAlias.h @@ -68,8 +68,8 @@ public: /// This method tries to ultimately resolve the alias by going through the /// aliasing chain and trying to find the very last global. Returns NULL if a /// cycle was found. - GlobalValue *getAliasedGlobal(); - const GlobalValue *getAliasedGlobal() const { + GlobalObject *getAliasedGlobal(); + const GlobalObject *getAliasedGlobal() const { return const_cast<GlobalAlias *>(this)->getAliasedGlobal(); } |