IRInterpreter now recognizes expressions with constants it doesn't handle.
authorSean Callanan <scallanan@apple.com>
Fri, 12 Feb 2016 21:16:58 +0000 (21:16 +0000)
committerSean Callanan <scallanan@apple.com>
Fri, 12 Feb 2016 21:16:58 +0000 (21:16 +0000)
commit8c62daf250020c76a78c54c2efc321d61c84f411
treec5a46e269b9de4e8aec37ad7cd64b8c0f3fc17d4
parentb281480203663a1add8248f400947b8d23db9509
IRInterpreter now recognizes expressions with constants it doesn't handle.

If an instruction has a constant that IRInterpreter doesn't know how to deal
with (say, an array constant, because we can't materialize it to APInt) then we
used to ignore that and only fail during expression execution.  This is annoying
because if IRInterpreter had just returned false from CanInterpret(), the JIT
would have been used.

Now the IRInterpreter checks constants as part of CanInterpret(), so this should
hopefully no longer be an issue.

llvm-svn: 260735
lldb/source/Expression/IRInterpreter.cpp