[clang] [HLSL] Fix casting asserts (PR #82827)

via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 23 12:45:27 PST 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 24e7be426efe142c49bfab5cb278ffa313424176 7d77f7ac71f1928812fc6dcdbce29a7ea9246666 -- clang/lib/Sema/SemaExprCXX.cpp clang/lib/Sema/SemaOverload.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/Sema/SemaOverload.cpp b/clang/lib/Sema/SemaOverload.cpp
index 324a7b2011..ecad2b9681 100644
--- a/clang/lib/Sema/SemaOverload.cpp
+++ b/clang/lib/Sema/SemaOverload.cpp
@@ -1883,7 +1883,7 @@ static bool IsVectorElementConversion(Sema &S, QualType FromType,
     ICK = ICK_Boolean_Conversion;
     return true;
   }
-  
+
   if ((FromType->isRealFloatingType() && ToType->isIntegralType(S.Context)) ||
       (FromType->isIntegralOrUnscopedEnumerationType() &&
        ToType->isRealFloatingType())) {
@@ -1892,7 +1892,7 @@ static bool IsVectorElementConversion(Sema &S, QualType FromType,
   }
 
   if (S.IsIntegralPromotion(From, FromType, ToType)) {
-    ICK =  ICK_Integral_Promotion;
+    ICK = ICK_Integral_Promotion;
     return true;
   }
 

``````````

</details>


https://github.com/llvm/llvm-project/pull/82827


More information about the cfe-commits mailing list