From c88a4ea0d6ba705a81401eda50796b15c994f6f9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 18 Aug 2003 17:33:15 +0000 Subject: [PATCH] no really, implement it! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7955 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/ExecutionEngine.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index e37d56f2cca..9b51e3c798f 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -55,8 +55,7 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) { return getConstantValue(Op); // Handle a cast of pointer to any integral type... - if (isa(Op->getType()) && - (C->getType() == Type::LongTy || C->getType() == Type::ULongTy)) + if (isa(Op->getType()) && C->getType()->isIntegral()) return getConstantValue(Op); // Handle cast of long to pointer... -- 2.34.1