Skip to content

Commit 7df3262

Browse files
committed
[FOLD] fix typo
1 parent 1be01eb commit 7df3262

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaExceptionSpec.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ bool Sema::CheckEquivalentExceptionSpec(FunctionDecl *Old, FunctionDecl *New) {
320320
New->getExceptionSpecType() == EST_DependentNoexcept) {
321321
const auto *OldType = Old->getType()->getAs<FunctionProtoType>();
322322
const auto *NewType = New->getType()->getAs<FunctionProtoType>();
323-
OldType = ResolveExceptionSpec(New->getLocation(), OldType);
323+
OldType = ResolveExceptionSpec(Old->getLocation(), OldType);
324324
if (!OldType)
325325
return false;
326326
NewType = ResolveExceptionSpec(New->getLocation(), NewType);

0 commit comments

Comments
 (0)