[LLVMdev] new warnings in r58273

Mike Stump mrs at apple.com
Mon Oct 27 15:06:34 PDT 2008


llvm/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp: In member  
function ‘void llvm::SelectionDAG::setSubgraphColor(llvm::SDNode*,  
const char*)’:
llvm/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:372:  
warning: comparison with string literal results in unspecified behavior
llvm/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp:375:  
warning: comparison with string literal results in unspecified behavior

from:

     if (Color == "red" ) {
       setSubgraphColorHelper(N, "blue", visited, 0, printed);
     }
     else if (Color == "yellow" ) {

:-(



More information about the llvm-dev mailing list