[clang] [HLSL] Disable implicit constructors for user-defined structs/classes (PR #194989)
Joshua Batista via cfe-commits
cfe-commits at lists.llvm.org
Fri May 1 13:09:56 PDT 2026
================
@@ -1079,21 +1079,22 @@ void CGHLSLRuntime::emitEntryFunction(const FunctionDecl *FD,
PD->getAttr<HLSLParamModifierAttr>()) {
llvm_unreachable("Not handled yet");
} else {
- llvm::Type *ParamType =
- Param.hasByValAttr() ? Param.getParamByValType() : Param.getType();
+ llvm::Type *ParamType = Param.hasByValAttr() ? Param.getParamByValType()
----------------
bob80905 wrote:
I think this is hard to read and should be split into two separate lines.
https://github.com/llvm/llvm-project/pull/194989
More information about the cfe-commits
mailing list