projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f16f4e0
)
Fixed a bug where missing EDInstInfo would cause
author
Sean Callanan
<scallanan@apple.com>
Thu, 7 Apr 2011 01:56:01 +0000
(
01:56
+0000)
committer
Sean Callanan
<scallanan@apple.com>
Thu, 7 Apr 2011 01:56:01 +0000
(
01:56
+0000)
tokenization to crash and burn.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129051
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/MCDisassembler/EDInst.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/MCDisassembler/EDInst.cpp
b/lib/MC/MCDisassembler/EDInst.cpp
index 63b049fe40fded84e25db20652533749fa9e5bfe..6057e169e3474b20a3151d177d94ab0c85dc450e 100644
(file)
--- a/
lib/MC/MCDisassembler/EDInst.cpp
+++ b/
lib/MC/MCDisassembler/EDInst.cpp
@@
-165,6
+165,9
@@
int EDInst::getOperand(EDOperand *&operand, unsigned int index) {
int EDInst::tokenize() {
if (TokenizeResult.valid())
return TokenizeResult.result();
+
+ if (ThisInstInfo == NULL)
+ return TokenizeResult.setResult(-1);
if (stringify())
return TokenizeResult.setResult(-1);