diff --git a/llvm/lib/Analysis/MemoryBuiltins.cpp b/llvm/lib/Analysis/MemoryBuiltins.cpp index 521e01588f3e4..351e81aac05db 100644 --- a/llvm/lib/Analysis/MemoryBuiltins.cpp +++ b/llvm/lib/Analysis/MemoryBuiltins.cpp @@ -306,7 +306,7 @@ bool llvm::isAllocationFn( /// Tests if a value is a call or invoke to a library function that /// allocates memory via new. bool llvm::isNewLikeFn(const Value *V, const TargetLibraryInfo *TLI) { - return getAllocationData(V, OpNewLike, TLI).hasValue(); + return getAllocationData(V, OpNewLike, TLI).has_value(); } /// Tests if a value is a call or invoke to a library function that