[clang] [Clang] Prevent null pointer dereference in TransformUnaryTransformType() (PR #97912)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 6 14:28:10 PDT 2024
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff 8426b51e0e942b27af8a50b9cee53c1b68d139c2 87eceedcfabb4f3f3b7c69f970716a40c745bf7a -- clang/lib/Sema/TreeTransform.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Sema/TreeTransform.h b/clang/lib/Sema/TreeTransform.h
index 46ac5ff989..e9071d7e89 100644
--- a/clang/lib/Sema/TreeTransform.h
+++ b/clang/lib/Sema/TreeTransform.h
@@ -6736,7 +6736,7 @@ QualType TreeTransform<Derived>::TransformUnaryTransformType(
const UnaryTransformType *T = TL.getTypePtr();
TypeSourceInfo *NewBaseTSI =
- getDerived().TransformType(TL.getUnderlyingTInfo());
+ getDerived().TransformType(TL.getUnderlyingTInfo());
if (!NewBaseTSI)
return QualType();
QualType NewBaseTSI = NewBaseType->getType();
``````````
</details>
https://github.com/llvm/llvm-project/pull/97912
More information about the cfe-commits
mailing list