[cfe-commits] r121855 - /cfe/trunk/lib/AST/DeclarationName.cpp
Chandler Carruth
chandlerc at gmail.com
Tue Dec 14 23:29:18 PST 2010
Author: chandlerc
Date: Wed Dec 15 01:29:18 2010
New Revision: 121855
URL: http://llvm.org/viewvc/llvm-project?rev=121855&view=rev
Log:
Silence GCC warning about control reaching the end of the function and explicitly mark that all cases are handled.
Modified:
cfe/trunk/lib/AST/DeclarationName.cpp
Modified: cfe/trunk/lib/AST/DeclarationName.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/DeclarationName.cpp?rev=121855&r1=121854&r2=121855&view=diff
==============================================================================
--- cfe/trunk/lib/AST/DeclarationName.cpp (original)
+++ cfe/trunk/lib/AST/DeclarationName.cpp Wed Dec 15 01:29:18 2010
@@ -20,6 +20,7 @@
#include "clang/Basic/IdentifierTable.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/FoldingSet.h"
+#include "llvm/Support/ErrorHandling.h"
#include "llvm/Support/raw_ostream.h"
using namespace clang;
@@ -531,6 +532,7 @@
return Name.getCXXNameType()->containsUnexpandedParameterPack();
}
+ llvm_unreachable("All name kinds handled.");
}
std::string DeclarationNameInfo::getAsString() const {
More information about the cfe-commits
mailing list