diff --git a/clang/lib/CodeGen/CGHLSLRuntime.h b/clang/lib/CodeGen/CGHLSLRuntime.h --- a/clang/lib/CodeGen/CGHLSLRuntime.h +++ b/clang/lib/CodeGen/CGHLSLRuntime.h @@ -47,7 +47,7 @@ void finishCodeGen(); - void setHLSLFnuctionAttributes(llvm::Function *, const FunctionDecl *); + void setHLSLFunctionAttributes(llvm::Function *, const FunctionDecl *); }; } // namespace CodeGen diff --git a/clang/lib/CodeGen/CGHLSLRuntime.cpp b/clang/lib/CodeGen/CGHLSLRuntime.cpp --- a/clang/lib/CodeGen/CGHLSLRuntime.cpp +++ b/clang/lib/CodeGen/CGHLSLRuntime.cpp @@ -87,7 +87,7 @@ ConstantAsMetadata::get(B.getInt32(Counter))})); } -void clang::CodeGen::CGHLSLRuntime::setHLSLFnuctionAttributes( +void clang::CodeGen::CGHLSLRuntime::setHLSLFunctionAttributes( llvm::Function *F, const FunctionDecl *FD) { if (HLSLShaderAttr *ShaderAttr = FD->getAttr()) { const StringRef ShaderAttrKindStr = "dx.shader";