[llvm-commits] CVS: llvm/tools/llvm-upgrade/UpgradeParser.y
Reid Spencer
reid at x10sys.com
Sun Apr 1 18:13:53 PDT 2007
Changes in directory llvm/tools/llvm-upgrade:
UpgradeParser.y updated: 1.75 -> 1.76
---
Log message:
Don't upgrade functions that look like a bswap intrinsic but aren't.
---
Diffs of the changes: (+1 -1)
UpgradeParser.y | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
Index: llvm/tools/llvm-upgrade/UpgradeParser.y
diff -u llvm/tools/llvm-upgrade/UpgradeParser.y:1.75 llvm/tools/llvm-upgrade/UpgradeParser.y:1.76
--- llvm/tools/llvm-upgrade/UpgradeParser.y:1.75 Sun Apr 1 19:50:28 2007
+++ llvm/tools/llvm-upgrade/UpgradeParser.y Sun Apr 1 20:13:36 2007
@@ -1457,7 +1457,7 @@
}
break;
case 'b':
- if (Name.length() > 10 && !memcmp(&Name[5], "bswap.", 6)) {
+ if (Name.length() == 14 && !memcmp(&Name[5], "bswap.i", 7)) {
const Type* ArgTy = Args[0]->getType();
Name += ".i" + utostr(cast<IntegerType>(ArgTy)->getBitWidth());
Function *F = cast<Function>(
More information about the llvm-commits
mailing list