mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 17:34:41 +00:00
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
This commit is contained in:
parent
abb1f16881
commit
b6e3d6ce70
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user