From bd3c5ecd37e760f0430c9cbd1fda5740eb7c0e27 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! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144079 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-diff/DiffConsumer.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tools/llvm-diff/DiffConsumer.cpp') diff --git a/tools/llvm-diff/DiffConsumer.cpp b/tools/llvm-diff/DiffConsumer.cpp index c23e8fb91a..24b372d022 100644 --- a/tools/llvm-diff/DiffConsumer.cpp +++ b/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.2.3-18-g5258