* Xtensa: fix crash in TCpuAsmOptimizer.RegLoadedWithNewValue

git-svn-id: trunk@49132 -
This commit is contained in:
florian 2021-04-07 13:54:58 +00:00
parent 103599ede0
commit 9a39124118

View File

@ -145,10 +145,7 @@ Implementation
begin
p := taicpu(hp);
Result := false;
if not ((assigned(hp)) and (hp.typ = ait_instruction)) then
exit;
if Result then
if not(assigned(hp) and (hp.typ = ait_instruction) and (p.ops > 0)) then
exit;
case p.opcode of