From 5ded03d873df0abc8f7eed8c05464528e1a7d25a Mon Sep 17 00:00:00 2001 From: John McCall Date: Tue, 8 Nov 2011 06:53:04 +0000 Subject: Fix the printing of constants. Patch by Stepan Dyatkovskiy! llvm-svn: 144079 --- llvm/tools/llvm-diff/DiffConsumer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'llvm/tools/llvm-diff/DiffConsumer.cpp') diff --git a/llvm/tools/llvm-diff/DiffConsumer.cpp b/llvm/tools/llvm-diff/DiffConsumer.cpp index c23e8fb9..24b372d 100644 --- a/llvm/tools/llvm-diff/DiffConsumer.cpp +++ b/llvm/tools/llvm-diff/DiffConsumer.cpp @@ -64,6 +64,10 @@ void DiffConsumer::printValue(Value *V, bool isL) { } return; } + if (dyn_cast(V)) { + out << *V; + return; + } unsigned N = contexts.size(); while (N > 0) { -- cgit v1.1