projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e9ff53d
)
[MemProf] Fix buildbot error due to hasValue deprecation warning
author
Teresa Johnson
<tejohnson@google.com>
Thu, 22 Sep 2022 20:26:53 +0000
(13:26 -0700)
committer
Teresa Johnson
<tejohnson@google.com>
Thu, 22 Sep 2022 20:26:53 +0000
(13:26 -0700)
Use has_value instead of hasValue to address a deprecation warning from
a212d8da94d08e229aa8d65283e4b116310bba10
. E.g.:
https://lab.llvm.org/buildbot/#/builders/57/builds/22166/steps/5/logs/stdio
llvm/lib/Analysis/MemoryBuiltins.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/MemoryBuiltins.cpp
b/llvm/lib/Analysis/MemoryBuiltins.cpp
index
521e015
..
351e81a
100644
(file)
--- 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).has
V
alue();
+ return getAllocationData(V, OpNewLike, TLI).has
_v
alue();
}
/// Tests if a value is a call or invoke to a library function that