[clang] af0052e - Fix MSVC "not all control paths return a value" warning. NFC.
Simon Pilgrim via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 9 01:56:08 PDT 2022
Author: Simon Pilgrim
Date: 2022-08-09T09:55:57+01:00
New Revision: af0052ef741f9bcfa3c7f0038d49f0cb1eaa59a4
URL: https://github.com/llvm/llvm-project/commit/af0052ef741f9bcfa3c7f0038d49f0cb1eaa59a4
DIFF: https://github.com/llvm/llvm-project/commit/af0052ef741f9bcfa3c7f0038d49f0cb1eaa59a4.diff
LOG: Fix MSVC "not all control paths return a value" warning. NFC.
Added:
Modified:
clang/lib/AST/ASTImporter.cpp
Removed:
################################################################################
diff --git a/clang/lib/AST/ASTImporter.cpp b/clang/lib/AST/ASTImporter.cpp
index fa2f07ad74fc..c368a61577cb 100644
--- a/clang/lib/AST/ASTImporter.cpp
+++ b/clang/lib/AST/ASTImporter.cpp
@@ -3390,6 +3390,7 @@ class IsTypeDeclaredInsideVisitor
// A template passed as argument can be not in ParentDC.
return false;
}
+ llvm_unreachable("Unknown TemplateArgument::ArgKind enum");
};
};
} // namespace
More information about the cfe-commits
mailing list