This fixes http://llvm.org/bugs/show_bug.cgi?id=21166 .
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Analysis/ScopInfo.cpp | ||
---|---|---|
1278 | You are iterating over all memory accesses of one statement, so I assume MA->getStatement() is always equal to Stmt, right? |
You are iterating over all memory accesses of one statement, so I assume MA->getStatement() is always equal to Stmt, right?
With that in mind, you can do the empty check outside this loop and skip the whole loop, if true.