summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorJohn Thompson <John.Thompson.JTSoftware@gmail.com>2010-11-17 23:58:47 +0000
committerJohn Thompson <John.Thompson.JTSoftware@gmail.com>2010-11-17 23:58:47 +0000
commitddc7ce548ce66bbe45e81b60d101e102c064baa8 (patch)
tree407c43eac7e62d084d80403a3c6584032faa9b81 /llvm/lib/CodeGen/SelectionDAG
parenteef03fb444ef2f7e1bc341ac5312a33996f8e124 (diff)
downloadbcm5719-llvm-ddc7ce548ce66bbe45e81b60d101e102c064baa8.tar.gz
bcm5719-llvm-ddc7ce548ce66bbe45e81b60d101e102c064baa8.zip
Bug 8621 fix - pointer cast stripped from inline asm constraint argument.
llvm-svn: 119590
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 4c63588dbcf..a471aab0e51 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -5545,9 +5545,6 @@ void SelectionDAGBuilder::visitInlineAsm(ImmutableCallSite CS) {
// If this is an input or an indirect output, process the call argument.
// BasicBlocks are labels, currently appearing only in asm's.
if (OpInfo.CallOperandVal) {
- // Strip bitcasts, if any. This mostly comes up for functions.
- OpInfo.CallOperandVal = OpInfo.CallOperandVal->stripPointerCasts();
-
if (const BasicBlock *BB = dyn_cast<BasicBlock>(OpInfo.CallOperandVal)) {
OpInfo.CallOperand = DAG.getBasicBlock(FuncInfo.MBBMap[BB]);
} else {
OpenPOWER on IntegriCloud