summaryrefslogtreecommitdiffstats
path: root/llvm/utils/TableGen/FileParser.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/TableGen/FileParser.cpp')
-rw-r--r--llvm/utils/TableGen/FileParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/FileParser.cpp b/llvm/utils/TableGen/FileParser.cpp
index 87897f5c5ce..2ab93adc704 100644
--- a/llvm/utils/TableGen/FileParser.cpp
+++ b/llvm/utils/TableGen/FileParser.cpp
@@ -1518,7 +1518,7 @@ case 69:
#line 543 "/Users/sabre/llvm/utils/TableGen/FileParser.y"
{
// If a class of this name already exists, it must be a forward ref.
- if (CurRec = Records.getClass(*yyvsp[0].StrVal)) {
+ if ((CurRec = Records.getClass(*yyvsp[0].StrVal))) {
// If the body was previously defined, this is an error.
if (!CurRec->getValues().empty() ||
!CurRec->getSuperClasses().empty() ||
OpenPOWER on IntegriCloud