aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Bitcode
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-12-17 22:33:23 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-12-17 22:33:23 +0000
commit7f05d85f62c2ab4db57c3c042a2a12ef622dd6f5 (patch)
tree0545ada63de4a6fd2f4d2a60a1f5c4206f8abed0 /lib/Bitcode
parent438be256033c719b0e782801cea97fe5de4d29b6 (diff)
downloadexternal_llvm-7f05d85f62c2ab4db57c3c042a2a12ef622dd6f5.zip
external_llvm-7f05d85f62c2ab4db57c3c042a2a12ef622dd6f5.tar.gz
external_llvm-7f05d85f62c2ab4db57c3c042a2a12ef622dd6f5.tar.bz2
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
Diffstat (limited to 'lib/Bitcode')
-rw-r--r--lib/Bitcode/Reader/BitcodeReader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp
index 4e761e4..19b7aa5 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));
}