Skip to content

Commit 56f97d0

Browse files
authored
Merge pull request #70589 from hyp/eng/autodiffmsvcmisc
[NFC] Workaround MSVC miscompile in the autodiff attribute typechecki…
2 parents 2bc509a + 652aaa4 commit 56f97d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Sema/TypeCheckAttr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5151,7 +5151,7 @@ enum class AbstractFunctionDeclLookupErrorKind {
51515151
/// Used for resolving the referenced declaration in `@derivative` and
51525152
/// `@transpose` attributes.
51535153
static AbstractFunctionDecl *findAutoDiffOriginalFunctionDecl(
5154-
DeclAttribute *attr, Type baseType, DeclNameRefWithLoc funcNameWithLoc,
5154+
DeclAttribute *attr, Type baseType, const DeclNameRefWithLoc &funcNameWithLoc,
51555155
DeclContext *lookupContext, NameLookupOptions lookupOptions,
51565156
const llvm::function_ref<
51575157
llvm::Optional<AbstractFunctionDeclLookupErrorKind>(

0 commit comments

Comments
 (0)