[PATCH] MCInstrAnalysis::evaluateBranch() silently fails without asserts

Stephen Checkoway s at pahtak.org
Wed Oct 16 02:07:03 PDT 2013


MCInstrAnalysis::evaluateBranch() was assuming that if the OperandType is MCOI::OPERAND_PCREL, then the operand was an immediate. This appears not to be the case.

I'm unsure if this is handling it correctly or if we should just give up immediately if it's not an immediate or something else.

I don't know how to write a test case for this since the assert only triggers in Debug.

-- 
Stephen Checkoway

-------------- next part --------------
A non-text attachment was scrubbed...
Name: MCInstrAnalysis-handle-expr.diff
Type: application/octet-stream
Size: 991 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20131016/c61be1a6/attachment.obj>
-------------- next part --------------



More information about the llvm-commits mailing list