projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abb1f16
)
Avoid a warning about isTargetNullPtr being unused in release builds.
author
Dan Gohman
<gohman@apple.com>
Tue, 26 Aug 2008 01:38:29 +0000
(
01:38
+0000)
committer
Dan Gohman
<gohman@apple.com>
Tue, 26 Aug 2008 01:38:29 +0000
(
01:38
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55350
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/ExecutionEngine/ExecutionEngine.cpp
patch
|
blob
|
history
diff --git
a/lib/ExecutionEngine/ExecutionEngine.cpp
b/lib/ExecutionEngine/ExecutionEngine.cpp
index aae0cf7823e7b2747ad740fe18bb99acb21992c3..2a7b914ac3447594938bec59afd81ce8ebdfb762 100644
(file)
--- 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,