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" ) { :-(
On Monday 27 October 2008 17:06, Mike Stump wrote:> 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" ) {Will fix. -Dave
I think I already fixed this one. On Oct 27, 2008, at 3:19 PM, David Greene wrote:> On Monday 27 October 2008 17:06, Mike Stump wrote: >> 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" ) { > > Will fix. > > -Dave > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev