We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d482f4d commit b4783b9Copy full SHA for b4783b9
lib/PhasarLLVM/DataFlow/IfdsIde/Problems/IDEInstInteractionAnalysis.cpp
@@ -109,7 +109,8 @@ bool IDEIIAFlowFact::operator==(const IDEIIAFlowFact &Other) const {
109
}
110
auto EqualGEPDescriptor = [](const llvm::GetElementPtrInst *Lhs,
111
const llvm::GetElementPtrInst *Rhs) {
112
- return llvm::equal(Lhs->indices(), Rhs->indices());
+ return Lhs->getSourceElementType() == Rhs->getSourceElementType() &&
113
+ llvm::equal(Lhs->indices(), Rhs->indices());
114
};
115
for (unsigned Idx = 0; Idx < FieldDesc.size(); ++Idx) {
116
if (!EqualGEPDescriptor(FieldDesc[Idx], Other.FieldDesc[Idx])) {
0 commit comments