diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-10-27 22:43:07 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-10-27 22:43:07 +0000 |
commit | 8fcff4d87a9056c370c198d68dff37eaf6a7b9f9 (patch) | |
tree | 694c84f0f5e597bf63af49e07882398df7ea7151 /llvm/lib/CodeGen | |
parent | 02f9fd4a6cbb68fdf29859814d133e75b73604c2 (diff) | |
download | bcm5719-llvm-8fcff4d87a9056c370c198d68dff37eaf6a7b9f9.tar.gz bcm5719-llvm-8fcff4d87a9056c370c198d68dff37eaf6a7b9f9.zip |
Fix bogus comparison of "const char *" with c-string literal. Use strcmp instead.
llvm-svn: 58290
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index 6decc00f40e..9cca6720460 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp @@ -369,10 +369,10 @@ void SelectionDAG::setSubgraphColor(SDNode *N, const char *Color) { bool printed = false; if (setSubgraphColorHelper(N, Color, visited, 0, printed)) { // Visually mark that we hit the limit - if (Color == "red" ) { + if (strcmp(Color, "red") == 0) { setSubgraphColorHelper(N, "blue", visited, 0, printed); } - else if (Color == "yellow" ) { + else if (strcmp(Color, "yellow") == 0) { setSubgraphColorHelper(N, "green", visited, 0, printed); } } |