Skip to content

Commit

Permalink
quick typo fix, verified compilation, no testing beyond trivial, upda…
Browse files Browse the repository at this point in the history
…ting PR with this commit
  • Loading branch information
jcarlson23 committed May 7, 2017
1 parent acca31f commit 31cffc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/MemoryModel/LocMemModel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ bool LocSymTableInfo::computeGepOffset(const llvm::User *V, LocationSet& ls) {
ls.offset += idx * sz;
}
// Handling struct here
else if (const StructType *ST = dyn_cast<StructType>(*gi ) {
else if (const StructType *ST = dyn_cast<StructType>(*gi)) {
assert(op && "non-const struct index in GEP");
const vector<u32_t> &so = SymbolTableInfo::Symbolnfo()->getStructOffsetVec(ST);
if ((unsigned)idx >= so.size()) {
Expand Down

0 comments on commit 31cffc2

Please sign in to comment.