This is an archive of the discontinued LLVM Phabricator instance.

X86Parser: Fix potential reference to deleted object
ClosedPublic

Authored by BrandonTJones on Jan 29 2019, 3:24 AM.

Details

Summary

Within the MatchFPUWaitAlias function, Operands[0] is potentially overwritten leading to &Op referencing a deleted object. To fix this, assign the reference after the function.

Diff Detail

Repository
rL LLVM

Event Timeline

BrandonTJones created this revision.Jan 29 2019, 3:24 AM

Mistake diffing against a wrong commit

Herald added a project: Restricted Project. · View Herald TranscriptFeb 19 2019, 7:22 AM

Doesn't this same issue exit in MatchAndEmitIntelInstruction?

Added the change to EmitIntelInstruction Also.

craig.topper accepted this revision.Mar 21 2019, 10:52 PM
craig.topper added a reviewer: craig.topper.
craig.topper removed a subscriber: craig.topper.

LGTM

This revision is now accepted and ready to land.Mar 21 2019, 10:54 PM

I do not have permissions to commit, can you do it for me? Thanks.

This revision was automatically updated to reflect the committed changes.