[llvm-commits] [PATCH] Error cannot be reached

Charles Davis cdavis at mymail.mines.edu
Thu May 12 21:21:10 PDT 2011


On 5/12/11 10:18 PM, Chris Lattner wrote:
> 
> On May 12, 2011, at 2:47 PM, Cameron McInally wrote:
> 
>> A silly little patch for unreachable code. It's self-explanatory:
> 
> How is that unreachable?  OpName != R->getName()
You may want to read the subject again:
>> -    if (R->getName() == "node" && !OpName.empty()) {
>> +    if (R->getName() == "node") {
>>       if (OpName.empty())
>>         error("'node' argument requires a name to match with operand

Chip



More information about the llvm-commits mailing list