Skip to content

Commit

Permalink
Merge pull request llvm#188 from vext01/type-unimpl-consts
Browse files Browse the repository at this point in the history
Add types to unimplemented AOT consts.
  • Loading branch information
ltratt authored Jul 25, 2024
2 parents dc02810 + ac97d44 commit d0f146e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/YkIR/YkIRWriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1569,6 +1569,8 @@ class YkIRWriter {
void serialiseUnimplementedConstant(Constant *C) {
// `Const` discriminator:
OutStreamer.emitInt8(ConstKindUnimplemented);
// tyidx:
OutStreamer.emitSizeT(typeIndex(C->getType()));
// problem constant, stringified:
serialiseString(toString(C));
}
Expand Down

0 comments on commit d0f146e

Please sign in to comment.