From: Chris Lattner Date: Tue, 26 Oct 2004 05:35:14 +0000 (+0000) Subject: Fix the interpreter crash that Michael McCracken found X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6f335f905c76187a7baf70a227fa843061473afe;p=oota-llvm.git Fix the interpreter crash that Michael McCracken found git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17239 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index 208f8e2e834..7fb4ad3ae81 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -170,6 +170,7 @@ void *ExecutionEngine::getPointerToGlobal(const GlobalValue *GV) { /// GenericValue ExecutionEngine::getConstantValue(const Constant *C) { GenericValue Result; + if (isa(C)) return Result; if (ConstantExpr *CE = const_cast(dyn_cast(C))) { switch (CE->getOpcode()) {