From f9b83fcf95e8a280d7b117af8858596fe5b10d94 Mon Sep 17 00:00:00 2001 From: Evan Cheng Date: Mon, 17 Dec 2007 22:33:23 +0000 Subject: Bring back int_x86_sse2_movl_dq intrinsic for backward compatibility. Make sure it's auto-upgraded to a shufflevector instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45131 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Bitcode/Reader/BitcodeReader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Bitcode/Reader/BitcodeReader.cpp') diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 4e761e402b..19b7aa5b81 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -873,7 +873,8 @@ bool BitcodeReader::ParseModule(const std::string &ModuleID) { // Look for intrinsic functions which need to be upgraded at some point for (Module::iterator FI = TheModule->begin(), FE = TheModule->end(); FI != FE; ++FI) { - if (Function* NewFn = UpgradeIntrinsicFunction(FI)) + Function* NewFn; + if (UpgradeIntrinsicFunction(FI, NewFn)) UpgradedIntrinsics.push_back(std::make_pair(FI, NewFn)); } -- cgit v1.2.3-18-g5258