Use isa<> instead of dyn_cast<> as suggested by Nick.

Should've read the patch a bit closer, sorry.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@144164 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
John McCall 2011-11-09 03:26:50 +00:00
parent 2f2fe417f9
commit fd22883a34

View File

@ -64,7 +64,7 @@ void DiffConsumer::printValue(Value *V, bool isL) {
} }
return; return;
} }
if (dyn_cast<Constant>(V)) { if (isa<Constant>(V)) {
out << *V; out << *V;
return; return;
} }