Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support opaque pointers #172

Merged
merged 8 commits into from
Jul 20, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Allow GEP into array of pointers
  • Loading branch information
dpaoliello committed Jul 18, 2023
commit 2b2cc4a1e599cf32551353000ea134df3d16c960
3 changes: 0 additions & 3 deletions lib/Target/CBackend/CBackend.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5490,9 +5490,6 @@ void CWriter::printGEPExpression(Value *Ptr, gep_type_iterator I,
// indexing into the element type.
Value *FirstOp = I.getOperand();
Type *IntoT = I.getIndexedType();
if (IntoT->isPointerTy()) {
llvm_unreachable("GetElementPtr indexing into a pointer");
}
++I;
if (!isConstantNull(FirstOp)) {
Out << "((";
Expand Down