diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-26 18:56:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-26 18:56:10 +0000 |
commit | d23b1d31c0a4d46f3ee78cd5393bea571c29888c (patch) | |
tree | 2ed914aaf3d642bc80863ac8a0b99352db327c7e /lib/Bytecode/Reader/ConstantReader.cpp | |
parent | dda719665ba2ffd2eb1c32a0d2daa3921448db7c (diff) |
Implement internal method support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bytecode/Reader/ConstantReader.cpp')
-rw-r--r-- | lib/Bytecode/Reader/ConstantReader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bytecode/Reader/ConstantReader.cpp b/lib/Bytecode/Reader/ConstantReader.cpp index ec39a9f64c..405745d14a 100644 --- a/lib/Bytecode/Reader/ConstantReader.cpp +++ b/lib/Bytecode/Reader/ConstantReader.cpp @@ -306,7 +306,8 @@ bool BytecodeParser::parseConstPoolValue(const uchar *&Buf, BCR_TRACE(5, "Creating new forward ref variable!\n"); // Create a placeholder for the global variable reference... - GlobalVariable *GVar = new GlobalVariable(PT->getValueType(), false); + GlobalVariable *GVar = + new GlobalVariable(PT->getValueType(), false, true); // Keep track of the fact that we have a forward ref to recycle it GlobalRefs.insert(make_pair(make_pair(PT, Slot), GVar)); |