Skip to content

Commit 761a597

Browse files
committed
[RISCV][CFI] enable CFIFixup pass in RISCVTargetMachine
1 parent 7dc1c08 commit 761a597

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Target/RISCV/RISCVTargetMachine.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ RISCVTargetMachine::RISCVTargetMachine(const Target &T, const Triple &TT,
177177

178178
if (TT.isOSFuchsia() && !TT.isArch64Bit())
179179
report_fatal_error("Fuchsia is only supported for 64-bit");
180+
181+
setCFIFixup(true);
180182
}
181183

182184
const RISCVSubtarget *

0 commit comments

Comments
 (0)