mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-03 02:08:54 +00:00
Fix bogus comparison of "const char *" with c-string literal. Use strcmp instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@58290 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8ad4c00c00
commit
8e7fa916fe
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user