commit | 5ded03d873df0abc8f7eed8c05464528e1a7d25a | [log] [tgz] |
---|---|---|
author | John McCall <rjmccall@apple.com> | Tue Nov 08 06:53:04 2011 +0000 |
committer | John McCall <rjmccall@apple.com> | Tue Nov 08 06:53:04 2011 +0000 |
tree | 94c527ba7e0021f43d0778730a31ae628c138715 | |
parent | dbe077a89da99afcb551ee0722e78f3dfcacf0b0 [diff] [blame] |
Fix the printing of constants. Patch by Stepan Dyatkovskiy! llvm-svn: 144079
diff --git a/llvm/tools/llvm-diff/DiffConsumer.cpp b/llvm/tools/llvm-diff/DiffConsumer.cpp index c23e8fb..24b372d 100644 --- a/llvm/tools/llvm-diff/DiffConsumer.cpp +++ b/llvm/tools/llvm-diff/DiffConsumer.cpp
@@ -64,6 +64,10 @@ } return; } + if (dyn_cast<Constant>(V)) { + out << *V; + return; + } unsigned N = contexts.size(); while (N > 0) {