diff options
author | Tim Northover <Tim.Northover@arm.com> | 2013-01-09 13:32:04 +0000 |
---|---|---|
committer | Tim Northover <Tim.Northover@arm.com> | 2013-01-09 13:32:04 +0000 |
commit | ab7689ecee4b016405b28a93be2047e301f49880 (patch) | |
tree | 0e9c2ec794e86ea29862dbe15160e1de78ab0de5 /llvm/lib/MC/MCObjectFileInfo.cpp | |
parent | f1450d8d7cda23d75d09f0ae58871c5d00e148a2 (diff) | |
download | llvm-ab7689ecee4b016405b28a93be2047e301f49880.zip llvm-ab7689ecee4b016405b28a93be2047e301f49880.tar.gz llvm-ab7689ecee4b016405b28a93be2047e301f49880.tar.bz2 |
Check whether MCInst operand isImm before calling getImm.
When processing possible aliases, TableGen assumes that if an operand *can* be
an immediate, then it always *will* be. This is incorrect for the AArch64
backend. This patch inserts a check in the generated code to make sure isImm is
true first.
llvm-svn: 171972
Diffstat (limited to 'llvm/lib/MC/MCObjectFileInfo.cpp')
0 files changed, 0 insertions, 0 deletions