Skip to content
Snippets Groups Projects
Commit 86207ee5 authored by Reid Spencer's avatar Reid Spencer
Browse files

Don't upgrade functions that look like a bswap intrinsic but aren't.

llvm-svn: 35570
parent 84c90a94
No related branches found
No related tags found
No related merge requests found
......@@ -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>(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment