diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -1680,7 +1680,7 @@ F->setCallingConv(static_cast(CallingConv)); if (getLangOpts().HLSL) { if (const FunctionDecl *FD = dyn_cast_or_null(GD.getDecl())) - getHLSLRuntime().setHLSLFnuctionAttributes(F, FD); + getHLSLRuntime().setHLSLFunctionAttributes(F, FD); } }