[llvm-commits] [llvm] r129051 - /llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp
Sean Callanan
scallanan at apple.com
Wed Apr 6 18:56:02 PDT 2011
Author: spyffe
Date: Wed Apr 6 20:56:01 2011
New Revision: 129051
URL: http://llvm.org/viewvc/llvm-project?rev=129051&view=rev
Log:
Fixed a bug where missing EDInstInfo would cause
tokenization to crash and burn.
Modified:
llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp
Modified: llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp?rev=129051&r1=129050&r2=129051&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp (original)
+++ llvm/trunk/lib/MC/MCDisassembler/EDInst.cpp Wed Apr 6 20:56:01 2011
@@ -165,6 +165,9 @@
int EDInst::tokenize() {
if (TokenizeResult.valid())
return TokenizeResult.result();
+
+ if (ThisInstInfo == NULL)
+ return TokenizeResult.setResult(-1);
if (stringify())
return TokenizeResult.setResult(-1);
More information about the llvm-commits
mailing list