diff --git a/llvm/lib/IR/Globals.cpp b/llvm/lib/IR/Globals.cpp --- a/llvm/lib/IR/Globals.cpp +++ b/llvm/lib/IR/Globals.cpp @@ -466,7 +466,7 @@ const GlobalObject *GlobalIndirectSymbol::getBaseObject() const { DenseSet Aliases; - return findBaseObject(getOperand(0), Aliases); + return findBaseObject(this, Aliases); } //===----------------------------------------------------------------------===//