projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9b0a801
)
Add an llvm_unreachable back to the autogeneration of this covered switch.
author
John McCall
<rjmccall@apple.com>
Tue, 1 Mar 2016 02:09:20 +0000
(
02:09
+0000)
committer
John McCall
<rjmccall@apple.com>
Tue, 1 Mar 2016 02:09:20 +0000
(
02:09
+0000)
llvm-svn: 262288
clang/utils/TableGen/ClangAttrEmitter.cpp
patch
|
blob
|
history
diff --git
a/clang/utils/TableGen/ClangAttrEmitter.cpp
b/clang/utils/TableGen/ClangAttrEmitter.cpp
index
8a854ca
..
96a3ea8
100644
(file)
--- a/
clang/utils/TableGen/ClangAttrEmitter.cpp
+++ b/
clang/utils/TableGen/ClangAttrEmitter.cpp
@@
-2294,7
+2294,8
@@
void EmitClangAttrASTVisitor(RecordKeeper &Records, raw_ostream &OS) {
<< " return getDerived().Traverse" << R.getName() << "Attr("
<< "cast<" << R.getName() << "Attr>(A));\n";
}
- OS << " }\n"; // end case
+ OS << " }\n"; // end switch
+ OS << " llvm_unreachable(\"bad attribute kind\");\n";
OS << "}\n"; // end function
OS << "#endif // ATTR_VISITOR_DECLS_ONLY\n";
}