projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d0e405
)
[TableGen] Fix a bug introduced in r256627. If the switch was not emitted we still...
author
Craig Topper
<craig.topper@gmail.com>
Sun, 3 Jan 2016 07:33:34 +0000
(07:33 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sun, 3 Jan 2016 07:33:34 +0000
(07:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256697
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/AsmMatcherEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/AsmMatcherEmitter.cpp
b/utils/TableGen/AsmMatcherEmitter.cpp
index 4ec08b23db835b14473494d752ecda3c3b235290..2ec65442a330b4689feb541a67739fde6104fbbe 100644
(file)
--- a/
utils/TableGen/AsmMatcherEmitter.cpp
+++ b/
utils/TableGen/AsmMatcherEmitter.cpp
@@
-2170,11
+2170,12
@@
static void emitIsSubclass(CodeGenTarget &Target,
OS << " return false;\n";
}
}
- OS << " }\n";
// If there were case statements emitted into the string stream write the
// default.
- if (!EmittedSwitch)
+ if (EmittedSwitch)
+ OS << " }\n";
+ else
OS << " return false;\n";
OS << "}\n\n";