[llvm-commits] [PATCH] Fix simple crashing bug in MachineInstr::getNumExplicitOperands

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Apr 8 08:47:21 PDT 2009


MachineInstr::getNumExplicitOperands was tripping asserts in  
getOperand. Looking at the code, it it obvious why.

Note: The attached fix assumes that all implicit machine instruction  
operands follow the explicit operands. Is that always true?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: machineinstr-getnumexplicitope.patch
Type: application/octet-stream
Size: 739 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20090408/53b11678/attachment.obj>
-------------- next part --------------



More information about the llvm-commits mailing list