diff --git a/llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp b/llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp index cab266b7f1dd..3e71f226a051 100644 --- a/llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp +++ b/llvm/lib/Analysis/TypeBasedAliasAnalysis.cpp @@ -133,7 +133,7 @@ TypeBasedAliasAnalysis::alias(const Value *A, unsigned ASize, ->getMDKindID("tbaa")); if (!AM) return MayAlias; MDNode *BM = - AI->getMetadata(BI->getParent()->getParent()->getParent() + BI->getMetadata(BI->getParent()->getParent()->getParent() ->getMDKindID("tbaa")); if (!BM) return MayAlias;