[all-commits] [llvm/llvm-project] 16036f: [MemProf] Fix bot failure about missing return val...
Teresa Johnson via All-commits
all-commits at lists.llvm.org
Wed Apr 19 14:09:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 16036f6cc9c7787d940f51a947403e9c1ce24a64
https://github.com/llvm/llvm-project/commit/16036f6cc9c7787d940f51a947403e9c1ce24a64
Author: Teresa Johnson <tejohnson at google.com>
Date: 2023-04-19 (Wed, 19 Apr 2023)
Changed paths:
M llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
Log Message:
-----------
[MemProf] Fix bot failure about missing return value along all paths
Fixes warning treated as error from
https://lab.llvm.org/buildbot/#/builders/13/builds/34440:
'llvm::LibCallSimplifier::optimizeNew': not all control paths return a value
after a35206d78280e0ebcf48cd21bc5fff5c3b9c73fa.
Change assert in default case to a return nullptr, so we have a
reasonable fallback if invoked on a different library function, and no
longer get the above warning.
More information about the All-commits
mailing list