diff options
author | Zarko Todorovski <zarko@ca.ibm.com> | 2021-11-23 13:22:21 -0500 |
---|---|---|
committer | Zarko Todorovski <zarko@ca.ibm.com> | 2021-11-23 13:22:55 -0500 |
commit | 0d3add216f04b99ed1db1a05c39975d4a9c83e6b (patch) | |
tree | 5638b95753212944052cc1d5872953291e17676e /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | 1df7289af66c630480a676e2a5347dca5a3ede15 (diff) | |
download | llvm-0d3add216f04b99ed1db1a05c39975d4a9c83e6b.zip llvm-0d3add216f04b99ed1db1a05c39975d4a9c83e6b.tar.gz llvm-0d3add216f04b99ed1db1a05c39975d4a9c83e6b.tar.bz2 |
[llvm][NFC] Inclusive language: Reword replace uses of sanity in llvm/lib/Transform comments and asserts
Reworded some comments and asserts to avoid usage of `sanity check/test`
Reviewed By: dblaikie
Differential Revision: https://reviews.llvm.org/D114372
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/InlineFunction.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp index f477658..9976678 100644 --- a/llvm/lib/Transforms/Utils/InlineFunction.cpp +++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp @@ -1218,10 +1218,9 @@ static void AddReturnAttributes(CallBase &CB, ValueToValueMapTy &VMap) { if (!RI || !isa<CallBase>(RI->getOperand(0))) continue; auto *RetVal = cast<CallBase>(RI->getOperand(0)); - // Sanity check that the cloned RetVal exists and is a call, otherwise we - // cannot add the attributes on the cloned RetVal. - // Simplification during inlining could have transformed the cloned - // instruction. + // Check that the cloned RetVal exists and is a call, otherwise we cannot + // add the attributes on the cloned RetVal. Simplification during inlining + // could have transformed the cloned instruction. auto *NewRetVal = dyn_cast_or_null<CallBase>(VMap.lookup(RetVal)); if (!NewRetVal) continue; |