[llvm-commits] [llvm] r55350 - /llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp

Dan Gohman gohman at apple.com
Mon Aug 25 18:38:29 PDT 2008


Author: djg
Date: Mon Aug 25 20:38:29 2008
New Revision: 55350

URL: http://llvm.org/viewvc/llvm-project?rev=55350&view=rev
Log:
Avoid a warning about isTargetNullPtr being unused in release builds.

Modified:
    llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp

Modified: llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp?rev=55350&r1=55349&r2=55350&view=diff

==============================================================================
--- llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp Mon Aug 25 20:38:29 2008
@@ -267,6 +267,7 @@
   }
 }
 
+#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 @@
       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,





More information about the llvm-commits mailing list