summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit26f5fb1277660125de0926bb30d71c3ae3121f46 (patch)
tree05780894b8b547305b20f0cfda7e971cf3755a04 /llvm/utils/TableGen/FileParser.cpp
parent1916ef75cf92cc65c091d5ffc1615f8ba0b539ba (diff)
downloadbcm5719-llvm-26f5fb1277660125de0926bb30d71c3ae3121f46.tar.gz
bcm5719-llvm-26f5fb1277660125de0926bb30d71c3ae3121f46.zip
Fix a warning
llvm-svn: 23550
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