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

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

llvm-svn: 144164
This commit is contained in:
John McCall 2011-11-09 03:26:50 +00:00
parent 595d419427
commit a6db70b049
1 changed files with 1 additions and 1 deletions

View File

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