aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2010-04-14 21:03:13 +0000
committerJohnny Chen <johnny.chen@apple.com>2010-04-14 21:03:13 +0000
commit76378270645e3db0d909641d5915bdd43a10f342 (patch)
treeaa0d4bba448f6dd391376aba858dbebd2816a3a2 /llvm/lib/CodeGen/MachineFunction.cpp
parentee457516e613818d84ec768df07223d877017dbb (diff)
downloadllvm-76378270645e3db0d909641d5915bdd43a10f342.zip
llvm-76378270645e3db0d909641d5915bdd43a10f342.tar.gz
llvm-76378270645e3db0d909641d5915bdd43a10f342.tar.bz2
Fixed another assert exposed by fuzzing. The utility function getRegisterEnum()
was asserting because the (RegClass, RegNum) combination doesn't make sense from an encoding point of view. Since getRegisterEnum() is used all over the place, to change the code to check for encoding error after each call would not only bloat the code, but also make it less readable. An Err flag is added to the ARMBasicMCBuilder where a client can set a non-zero value to indicate some kind of error condition while building up the MCInst. ARMBasicMCBuilder::BuildIt() checks this flag and returns false if a non-zero value is detected. llvm-svn: 101290
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions