Skip to content

Commit 255bba0

Browse files
[memprof] Fix a warning
This patch fixes: llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp:4771:9: error: non-void lambda does not return a value in all control paths [-Werror,-Wreturn-type]
1 parent e654d4e commit 255bba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/IPO/MemProfContextDisambiguation.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4766,8 +4766,8 @@ bool CallsiteContextGraph<DerivedCCG, FuncTy, CallTy>::assignFunctions() {
47664766
if (!FuncCloneToCurNodeCloneMap.count(CF.FuncClone))
47674767
return CF.FuncClone;
47684768
}
4769-
assert(false &&
4770-
"Expected an available func clone for this callsite clone");
4769+
llvm_unreachable(
4770+
"Expected an available func clone for this callsite clone");
47714771
};
47724772

47734773
// See if we can use existing function clone. Walk through

0 commit comments

Comments
 (0)