Avoid a warning about isTargetNullPtr being unused in release builds.

llvm-svn: 55350
This commit is contained in:
Dan Gohman 2008-08-26 01:38:29 +00:00
parent 6f2db7238b
commit cf3e3017c8
1 changed files with 2 additions and 0 deletions

View File

@ -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,