From 356b0471a11370b4c8833519a2d9ffbe8ce6b2e1 Mon Sep 17 00:00:00 2001 From: Martin Nowack Date: Thu, 4 Jun 2020 11:56:48 +0100 Subject: Replace `NULL` with explicit `nullptr` --- lib/Module/ModuleUtil.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/Module') diff --git a/lib/Module/ModuleUtil.cpp b/lib/Module/ModuleUtil.cpp index 974667e3..f4cc3048 100644 --- a/lib/Module/ModuleUtil.cpp +++ b/lib/Module/ModuleUtil.cpp @@ -280,22 +280,22 @@ Function *klee::getDirectCallTarget( #endif v = ga->getAliasee(); } else { - v = NULL; + v = nullptr; } } else if (llvm::ConstantExpr *ce = dyn_cast(v)) { viaConstantExpr = true; v = ce->getOperand(0)->stripPointerCasts(); } else { - v = NULL; + v = nullptr; } - } while (v != NULL); + } while (v != nullptr); // NOTE: This assert may fire, it isn't necessarily a problem and // can be disabled, I just wanted to know when and if it happened. (void) viaConstantExpr; assert((!viaConstantExpr) && "FIXME: Unresolved direct target for a constant expression"); - return NULL; + return nullptr; } static bool valueIsOnlyCalled(const Value *v) { -- cgit 1.4.1