Skip to content

Commit

Permalink
Sulong: amend LLVMContext.getSymbol to check for constant "symbol"
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasstadler committed May 20, 2021
1 parent 3e90988 commit 87849e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ public LLVMPointer getSymbol(LLVMSymbol symbol) {
BitcodeID bitcodeID = symbol.getBitcodeID(false);
int id = bitcodeID.getId();
int index = symbol.getSymbolIndex(false);
if (CompilerDirectives.inCompiledCode() && CompilerDirectives.isPartialEvaluationConstant(this)) {
if (CompilerDirectives.inCompiledCode() && CompilerDirectives.isPartialEvaluationConstant(this) && CompilerDirectives.isPartialEvaluationConstant(symbol)) {
if (!symbolAssumptions[id][index].isValid()) {
CompilerDirectives.transferToInterpreterAndInvalidate();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2016, 2020, Oracle and/or its affiliates.
* Copyright (c) 2016, 2021, Oracle and/or its affiliates.
*
* All rights reserved.
*
Expand Down Expand Up @@ -86,7 +86,6 @@ protected void initialize(VirtualFrame frame,
writeObjects(frame, context);
}

@ExplodeLoop
private void writePrimitives(LLVMContext context, LLVMI8OffsetStoreNode storeI8, LLVMI64OffsetStoreNode storeI64) {
int offset = 0;
int nextStore = 0;
Expand Down

0 comments on commit 87849e2

Please sign in to comment.