commit | 65ea171409e8c25db20806fb09e820f46e3d11a2 | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Wed Nov 14 11:27:58 2001 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Wed Nov 14 11:27:58 2001 +0000 |
tree | 081a79420f9555f0962134e7cd6d1fd2696c93db | |
parent | c2ae4f6d3b72d153272b244fc1c8701ee89cbddb [diff] [blame] |
Remove much cruft from the MemAccessInst instruction git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1298 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/InstrSelection/InstrForest.cpp b/lib/CodeGen/InstrSelection/InstrForest.cpp index d460bb7..f928683 100644 --- a/lib/CodeGen/InstrSelection/InstrForest.cpp +++ b/lib/CodeGen/InstrSelection/InstrForest.cpp
@@ -76,7 +76,7 @@ } else if ((opLabel == Instruction::Load || opLabel == Instruction::GetElementPtr) && - ((MemAccessInst*)I)->getFirstOffsetIdx() > 0) + cast<MemAccessInst>(I)->hasIndices()) { opLabel = opLabel + 100; // load/getElem with index vector }