aboutsummaryrefslogtreecommitdiffstats
path: root/lib/AsmParser/llvmAsmParser.y
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-25 03:54:16 +0000
committerChris Lattner <sabre@nondot.org>2003-11-25 03:54:16 +0000
commit0b268fb75e138dee2a6a58540eb53cb8a6e2ad24 (patch)
tree0d26313b78182be3f55abf942d70462bdbd4fb98 /lib/AsmParser/llvmAsmParser.y
parent22e4686974c01a7df8fa237ee541d0d514a1462e (diff)
downloadexternal_llvm-0b268fb75e138dee2a6a58540eb53cb8a6e2ad24.zip
external_llvm-0b268fb75e138dee2a6a58540eb53cb8a6e2ad24.tar.gz
external_llvm-0b268fb75e138dee2a6a58540eb53cb8a6e2ad24.tar.bz2
Fix PR147
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10204 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/llvmAsmParser.y')
-rw-r--r--lib/AsmParser/llvmAsmParser.y5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y
index ca2924b..e5018ec 100644
--- a/lib/AsmParser/llvmAsmParser.y
+++ b/lib/AsmParser/llvmAsmParser.y
@@ -553,6 +553,11 @@ static bool setValueName(Value *V, char *NameStr) {
}
}
}
+
+ // Clear the symbol table so it doesn't complain when it
+ // gets destructed
+ CurFun.LocalSymtab.clear();
+
ThrowException("Redefinition of value named '" + Name + "' in the '" +
V->getType()->getDescription() + "' type plane!");
}