[clang] [HLSL][NFC] Move packoffset validation to separate function and calculate offsets in bytes (PR #121989)

Helena Kotas via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 7 12:20:45 PST 2025


================
@@ -219,33 +223,41 @@ void SemaHLSL::ActOnFinishBuffer(Decl *Dcl, SourceLocation RBrace) {
     }
   }
 
-  if (HasPackOffset && HasNonPackOffset)
----------------
hekota wrote:

This is best to review with 'Hide whitespaces'

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


More information about the cfe-commits mailing list