summaryrefslogtreecommitdiff
path: root/lib/AsmParser/LLParser.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-07 04:08:57 +0000
committerChris Lattner <sabre@nondot.org>2010-04-07 04:08:57 +0000
commit4ba9d9b67be87ce82f71023643b759ff12fdb411 (patch)
tree8ae92d5a6bcd44020bf3896c1124dc7f6ccfd1c8 /lib/AsmParser/LLParser.h
parentd49baefaad45715774f6409b76274dc62f33f8c0 (diff)
downloadllvm-4ba9d9b67be87ce82f71023643b759ff12fdb411.tar.gz
llvm-4ba9d9b67be87ce82f71023643b759ff12fdb411.tar.bz2
llvm-4ba9d9b67be87ce82f71023643b759ff12fdb411.tar.xz
fix a crash on invalid metadata, e.g.: call i32 @foo(), XXXX
We would return the error without inserting the new instruction into the program, so it wouldn't get deallocated, and an abort would trigger when the module was deleted. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100602 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser/LLParser.h')
-rw-r--r--lib/AsmParser/LLParser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AsmParser/LLParser.h b/lib/AsmParser/LLParser.h
index ae460bbb57..c8f669f641 100644
--- a/lib/AsmParser/LLParser.h
+++ b/lib/AsmParser/LLParser.h
@@ -74,7 +74,7 @@ namespace llvm {
public:
typedef LLLexer::LocTy LocTy;
private:
- LLVMContext& Context;
+ LLVMContext &Context;
LLLexer Lex;
Module *M;