diff options
| author | Victor Hernandez <vhernandez@apple.com> | 2010-01-15 17:36:47 +0000 |
|---|---|---|
| committer | Victor Hernandez <vhernandez@apple.com> | 2010-01-15 17:36:47 +0000 |
| commit | 797ddec380dfcd01f74055185b31d8d3ce33186f (patch) | |
| tree | f1d6c9aada113a2ab81f8751199c43a326769603 /lib/CodeGen/SelectionDAG/FastISel.cpp | |
| parent | e94da45302705e522d870bc4b3c58f3ca3d04d8e (diff) | |
| download | external_llvm-797ddec380dfcd01f74055185b31d8d3ce33186f.zip external_llvm-797ddec380dfcd01f74055185b31d8d3ce33186f.tar.gz external_llvm-797ddec380dfcd01f74055185b31d8d3ce33186f.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/SelectionDAG/FastISel.cpp')
| -rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 2 |
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; |
