diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-04-02 01:13:36 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-04-02 01:13:36 +0000 |
commit | de704f36c688684e4587c89ffbc791ace958b4c7 (patch) | |
tree | 4e7b9d4696c9194fff9e4139c00b09213e30f825 /tools/llvm-upgrade | |
parent | 9277e3bbd3a3c2293c3bd6222c691909197c9b40 (diff) | |
download | external_llvm-de704f36c688684e4587c89ffbc791ace958b4c7.zip external_llvm-de704f36c688684e4587c89ffbc791ace958b4c7.tar.gz external_llvm-de704f36c688684e4587c89ffbc791ace958b4c7.tar.bz2 |
Don't upgrade functions that look like a bswap intrinsic but aren't.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35570 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-upgrade')
-rw-r--r-- | tools/llvm-upgrade/UpgradeParser.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-upgrade/UpgradeParser.y b/tools/llvm-upgrade/UpgradeParser.y index 9874ce8..37373cf 100644 --- a/tools/llvm-upgrade/UpgradeParser.y +++ b/tools/llvm-upgrade/UpgradeParser.y @@ -1457,7 +1457,7 @@ upgradeIntrinsicCall(const Type* RetTy, const ValID &ID, } 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>( |