[cfe-commits] r42006 - /cfe/trunk/AST/CFG.cpp
Chris Lattner
sabre at nondot.org
Sun Sep 16 12:11:53 PDT 2007
Author: lattner
Date: Sun Sep 16 14:11:53 2007
New Revision: 42006
URL: http://llvm.org/viewvc/llvm-project?rev=42006&view=rev
Log:
fix warning.
Modified:
cfe/trunk/AST/CFG.cpp
Modified: cfe/trunk/AST/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/CFG.cpp?rev=42006&r1=42005&r2=42006&view=diff
==============================================================================
--- cfe/trunk/AST/CFG.cpp (original)
+++ cfe/trunk/AST/CFG.cpp Sun Sep 16 14:11:53 2007
@@ -1132,7 +1132,7 @@
C->getRHS()->printPretty(OS);
}
}
- else if (DefaultStmt* D = dyn_cast<DefaultStmt>(S))
+ else if (isa<DefaultStmt>(S))
OS << "default";
else
assert(false && "Invalid label statement in CFGBlock.");
More information about the cfe-commits
mailing list