Skip to content

Commit ded8daf

Browse files
committed
Add const
1 parent 84c8965 commit ded8daf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-reduce/deltas/ReduceValuesToReturn.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ static bool canReplaceFuncUsers(const Function &F, Type *NewRetTy) {
173173
/// Return true if it's worthwhile replacing the non-void return value of \p BB
174174
/// with \p Replacement
175175
static bool shouldReplaceNonVoidReturnValue(const BasicBlock &BB,
176-
Value *Replacement) {
176+
const Value *Replacement) {
177177
if (const auto *RI = dyn_cast<ReturnInst>(BB.getTerminator()))
178178
return RI->getReturnValue() != Replacement;
179179
return true;

0 commit comments

Comments
 (0)