[llvm] r205730 - R600: Replace dyn_cast + assert with cast
Tom Stellard
thomas.stellard at amd.com
Mon Apr 7 12:31:13 PDT 2014
Author: tstellar
Date: Mon Apr 7 14:31:13 2014
New Revision: 205730
URL: http://llvm.org/viewvc/llvm-project?rev=205730&view=rev
Log:
R600: Replace dyn_cast + assert with cast
Modified:
llvm/trunk/lib/Target/R600/AMDGPUISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/R600/AMDGPUISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/R600/AMDGPUISelDAGToDAG.cpp?rev=205730&r1=205729&r2=205730&view=diff
==============================================================================
--- llvm/trunk/lib/Target/R600/AMDGPUISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/R600/AMDGPUISelDAGToDAG.cpp Mon Apr 7 14:31:13 2014
@@ -376,8 +376,7 @@ SDNode *AMDGPUDAGToDAGISel::Select(SDNod
if (ConstantFPSDNode *FP = dyn_cast<ConstantFPSDNode>(N))
Imm = FP->getValueAPF().bitcastToAPInt().getZExtValue();
else {
- ConstantSDNode *C = dyn_cast<ConstantSDNode>(N);
- assert(C);
+ ConstantSDNode *C = cast<ConstantSDNode>(N);
Imm = C->getZExtValue();
}
More information about the llvm-commits
mailing list