[llvm-commits] [llvm] r93026 - /llvm/trunk/lib/Transforms/InstCombine/InstCombineCalls.cpp
Eric Christopher
echristo at apple.com
Tue Jan 12 00:47:19 PST 2010
On Jan 8, 2010, at 11:35 PM, Duncan Sands wrote:
> Hi Eric,
>
>> - ConstantInt *Const = dyn_cast<ConstantInt>(II->getOperand(2));
>> -
>> - if (!Const) return 0;
>> -
>> + ConstantInt *Const = cast<ConstantInt>(II->getOperand(2));
>
> can you please make the same change in the llvm-gcc code, where you also used
> "dyn_cast + assert" rather than "cast".
Yep. Got it.
-eric
More information about the llvm-commits
mailing list