aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorVictor Hernandez <vhernandez@apple.com>2010-01-15 17:36:47 +0000
committerVictor Hernandez <vhernandez@apple.com>2010-01-15 17:36:47 +0000
commit5f03238d629c32bb0bab78d112a42293838558e9 (patch)
treef1d6c9aada113a2ab81f8751199c43a326769603 /lib/CodeGen
parent46a49da410a738a68ecbd2964f519251ba27fc66 (diff)
downloadexternal_llvm-5f03238d629c32bb0bab78d112a42293838558e9.zip
external_llvm-5f03238d629c32bb0bab78d112a42293838558e9.tar.gz
external_llvm-5f03238d629c32bb0bab78d112a42293838558e9.tar.bz2
Revert r93504 because older uses of llvm.dbg.declare intrinsics need to be auto-upgraded
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/FastISel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp
index 09fd657..8bc95d3 100644
--- a/lib/CodeGen/SelectionDAG/FastISel.cpp
+++ b/lib/CodeGen/SelectionDAG/FastISel.cpp
@@ -332,6 +332,8 @@ bool FastISel::SelectCall(User *I) {
return true;
Value *Address = DI->getAddress();
+ if (BitCastInst *BCI = dyn_cast<BitCastInst>(Address))
+ Address = BCI->getOperand(0);
AllocaInst *AI = dyn_cast<AllocaInst>(Address);
// Don't handle byval struct arguments or VLAs, for example.
if (!AI) break;