From: Dan Gohman Date: Tue, 26 Aug 2008 01:38:29 +0000 (+0000) Subject: Avoid a warning about isTargetNullPtr being unused in release builds. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b6e3d6ce709e9ed57df055b026e55d19e50df772;p=oota-llvm.git Avoid a warning about isTargetNullPtr being unused in release builds. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55350 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/ExecutionEngine.cpp b/lib/ExecutionEngine/ExecutionEngine.cpp index aae0cf7823e..2a7b914ac34 100644 --- a/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/lib/ExecutionEngine/ExecutionEngine.cpp @@ -267,6 +267,7 @@ void ExecutionEngine::runStaticConstructorsDestructors(bool isDtors) { } } +#ifndef NDEBUG /// isTargetNullPtr - Return whether the target pointer stored at Loc is null. static bool isTargetNullPtr(ExecutionEngine *EE, void *Loc) { unsigned PtrSize = EE->getTargetData()->getPointerSize(); @@ -275,6 +276,7 @@ static bool isTargetNullPtr(ExecutionEngine *EE, void *Loc) { return false; return true; } +#endif /// runFunctionAsMain - This is a helper function which wraps runFunction to /// handle the common task of starting up main with the specified argc, argv,