mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-30 08:44:48 +00:00
Fix the interpreter crash that Michael McCracken found
llvm-svn: 17239
This commit is contained in:
parent
6e775d56cf
commit
0dbd792854
@ -170,6 +170,7 @@ void *ExecutionEngine::getPointerToGlobal(const GlobalValue *GV) {
|
||||
///
|
||||
GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
|
||||
GenericValue Result;
|
||||
if (isa<UndefValue>(C)) return Result;
|
||||
|
||||
if (ConstantExpr *CE = const_cast<ConstantExpr*>(dyn_cast<ConstantExpr>(C))) {
|
||||
switch (CE->getOpcode()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user