summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
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
commit0e179d015f94a0df6a7c3261a6a2d08b4aae9c8c (patch)
tree1c7601183c63b92fccc66059025c64ca7caa8fed /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentc5cccb9e60c4f74a0f66585054728550559fa38d (diff)
downloadbcm5719-llvm-0e179d015f94a0df6a7c3261a6a2d08b4aae9c8c.tar.gz
bcm5719-llvm-0e179d015f94a0df6a7c3261a6a2d08b4aae9c8c.zip
Bring back int_x86_sse2_movl_dq intrinsic for backward compatibility. Make sure
it's auto-upgraded to a shufflevector instruction. llvm-svn: 45131
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 4e761e402b8..19b7aa5b819 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/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));
}
OpenPOWER on IntegriCloud