From 6f335f905c76187a7baf70a227fa843061473afe Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 26 Oct 2004 05:35:14 +0000 Subject: [PATCH] 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 --- lib/ExecutionEngine/ExecutionEngine.cpp | 1 + 1 file changed, 1 insertion(+) 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()) { -- 2.34.1