aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nuno.lopes@tecnico.ulisboa.pt>2022-07-23 21:50:11 +0100
committerNuno Lopes <nuno.lopes@tecnico.ulisboa.pt>2022-07-23 21:50:11 +0100
commit9df0b254d24eca0987d9f88e998b4432f8608ff2 (patch)
tree259a82abacdecc595ac435c46d1391803b532053 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent2d2e2e7ea960c678416862f4b70215f0de16f39a (diff)
downloadllvm-9df0b254d24eca0987d9f88e998b4432f8608ff2.zip
llvm-9df0b254d24eca0987d9f88e998b4432f8608ff2.tar.gz
llvm-9df0b254d24eca0987d9f88e998b4432f8608ff2.tar.bz2
[NFC] Switch a few uses of undef to poison as placeholders for unreachable code
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 7e835bd..00387ec 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -2627,7 +2627,7 @@ llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI,
} else if (!CB.use_empty()) {
// No returns, but something is using the return value of the call. Just
// nuke the result.
- CB.replaceAllUsesWith(UndefValue::get(CB.getType()));
+ CB.replaceAllUsesWith(PoisonValue::get(CB.getType()));
}
// Since we are now done with the Call/Invoke, we can delete it.