Skip to content

Commit

Permalink
RISC-V: fix ctor of S-type instruction to respect preceding instruction
Browse files Browse the repository at this point in the history
  • Loading branch information
janvrany committed Aug 3, 2021
1 parent a085752 commit 7ca2d34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/riscv/codegen/RVInstruction.hpp
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2019, 2020 IBM Corp. and others
* Copyright (c) 2019, 2021 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
Expand Down Expand Up @@ -793,7 +793,7 @@ class BtypeInstruction : public StypeInstruction
TR::Instruction *precedingInstruction,
TR::CodeGenerator *cg
)
: StypeInstruction(op, n, s1reg, s2reg, 0, cg),
: StypeInstruction(op, n, s1reg, s2reg, 0, precedingInstruction, cg),
_symbol(sym),
_estimatedBinaryLocation(0)
{
Expand Down

0 comments on commit 7ca2d34

Please sign in to comment.