From 68464b74b81eda369dac5c26c4e7f8d00d3f7c64 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 15 Jun 2006 16:09:59 +0000 Subject: [PATCH] Actually add instructions to the list of defined values so it gets recognized as such! This prevents the CppWriter from treating every operand as a forward reference and making a mess of the output. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28800 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm2cpp/CppWriter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/llvm2cpp/CppWriter.cpp b/tools/llvm2cpp/CppWriter.cpp index c7cbe40d604..41b9b7eef92 100644 --- a/tools/llvm2cpp/CppWriter.cpp +++ b/tools/llvm2cpp/CppWriter.cpp @@ -1193,6 +1193,7 @@ CppWriter::printInstruction(const Instruction *I, const std::string& bbname) { break; } } + DefinedValues.insert(I); Out << "\n"; delete [] opNames; } -- 2.11.0