[clang] [llvm] [HLSL][DXIL] Implement `refract` intrinsic (PR #136026)
    Kaitlin Peng via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Apr 29 12:15:50 PDT 2025
    
    
  
================
@@ -89,7 +132,7 @@ bool SemaSPIRV::CheckSPIRVBuiltinFunctionCall(unsigned BuiltinID,
     QualType ArgTyB = B.get()->getType();
     auto *VTyB = ArgTyB->getAs<VectorType>();
     if (VTyB == nullptr) {
-      SemaRef.Diag(A.get()->getBeginLoc(),
+      SemaRef.Diag(B.get()->getBeginLoc(),
----------------
kmpeng wrote:
Btw the distance case also uses A.get()->getBeginLoc() for ArgTyB, probably want to change that one too
https://github.com/llvm/llvm-project/pull/136026
    
    
More information about the llvm-commits
mailing list