diff options
author | Adrian Prantl <aprantl@apple.com> | 2013-07-10 01:53:37 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2013-07-10 01:53:37 +0000 |
commit | a1ffd1a450408657c55eb7e33146f6be64cd2e54 (patch) | |
tree | bb0afb9cd17ead4a9dc091defc8267ef735d8dc5 /llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | |
parent | facc9f4e3e6f9a7d65c328b3cae06be0fca135fd (diff) | |
download | bcm5719-llvm-a1ffd1a450408657c55eb7e33146f6be64cd2e54.tar.gz bcm5719-llvm-a1ffd1a450408657c55eb7e33146f6be64cd2e54.zip |
Un-break the buildbot by tweaking the indirection flag.
Pulled in a testcase from the debuginfo-test suite.
llvm-svn: 185993
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FastISel.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/FastISel.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp index 14a2b005c04..b4ac948fc11 100644 --- a/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -642,11 +642,17 @@ bool FastISel::SelectCall(const User *I) { if (Op) if (Op->isReg()) { + // Set the indirect flag if the type and the DIVariable's + // indirect field are in disagreement: Indirectly-addressed + // variables that are nonpointer types should be marked as + // indirect, and VLAs should be marked as indirect eventhough + // they are a pointer type. + bool IsIndirect = DI->getAddress()->getType()->isPointerTy() + ^ DIVar.isIndirect(); Op->setIsDebug(true); BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(TargetOpcode::DBG_VALUE), - /* IsIndirect */ DI->getAddress()->getType()->isPointerTy(), - Op->getReg(), Offset, DI->getVariable()); + IsIndirect, Op->getReg(), Offset, DI->getVariable()); } else BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(TargetOpcode::DBG_VALUE)).addOperand(*Op).addImm(0) |