aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/FileParser.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-30 06:09:50 +0000
committerChris Lattner <sabre@nondot.org>2005-09-30 06:09:50 +0000
commit88b7e6e304f1dcafb805dea449b4037f5c904ea1 (patch)
tree556908caf15171cb3d6f9e5ba7c4b4bb8aaea10a /utils/TableGen/FileParser.cpp
parent946ac939c6e32a5e30996d57ee65bcca28f52a74 (diff)
Fix a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23550 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/FileParser.cpp')
-rw-r--r--utils/TableGen/FileParser.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/TableGen/FileParser.cpp b/utils/TableGen/FileParser.cpp
index 87897f5c5c..2ab93adc70 100644
--- a/utils/TableGen/FileParser.cpp
+++ b/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() ||