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:
0a849f4
)
[TableGen] Fix MSVC warning that occurs in TableGen generated function
author
Alex Lorenz
<arphaman@gmail.com>
Tue, 18 Apr 2017 09:59:27 +0000
(09:59 +0000)
committer
Alex Lorenz
<arphaman@gmail.com>
Tue, 18 Apr 2017 09:59:27 +0000
(09:59 +0000)
This should fix the Windows buildbot failure that happened after r300539.
llvm-svn: 300540
clang/utils/TableGen/ClangAttrEmitter.cpp
patch
|
blob
|
history
diff --git
a/clang/utils/TableGen/ClangAttrEmitter.cpp
b/clang/utils/TableGen/ClangAttrEmitter.cpp
index
6dc3911
..
7aa8bdc
100644
(file)
--- a/
clang/utils/TableGen/ClangAttrEmitter.cpp
+++ b/
clang/utils/TableGen/ClangAttrEmitter.cpp
@@
-3167,7
+3167,9
@@
emitAttributeMatchRules(PragmaClangAttributeSupport &PragmaAttributeSupport,
}
OS << ";\n";
}
- OS << " }\n}\n\n";
+ OS << " }\n";
+ OS << " llvm_unreachable(\"Invalid match rule\");\n";
+ OS << "}\n\n";
}
static void GenerateDefaultLangOptRequirements(raw_ostream &OS) {