From: Manman Ren Date: Fri, 27 Sep 2013 22:59:21 +0000 (+0000) Subject: TBAA: try to fix the dragonegg bots. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e5f32cf3207da58359a6e3aeeb5b01205645f710;p=oota-llvm.git TBAA: try to fix the dragonegg bots. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191585 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Analysis/TypeBasedAliasAnalysis.cpp b/lib/Analysis/TypeBasedAliasAnalysis.cpp index ef37bdccbfd..9026dc91143 100644 --- a/lib/Analysis/TypeBasedAliasAnalysis.cpp +++ b/lib/Analysis/TypeBasedAliasAnalysis.cpp @@ -326,7 +326,9 @@ TypeBasedAliasAnalysis::getAnalysisUsage(AnalysisUsage &AU) const { /// it as struct-path aware TBAA format, otherwise, we treat it as scalar TBAA /// format. static bool isStructPathTBAA(const MDNode *MD) { - return isa(MD->getOperand(0)); + // Anonymous TBAA root starts with a MDNode and dragonegg uses it as + // a TBAA tag. + return isa(MD->getOperand(0)) && MD->getNumOperands() >= 3; } /// Aliases - Test whether the type represented by A may alias the