git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102558 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2010-04-28 23:24:13 +00:00
parent 9ac7282117
commit f38c6c89f1

View File

@ -3814,14 +3814,8 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
MDNode *Variable = DI.getVariable();
// Parameters are handled specially.
bool isParameter = false;
ConstantInt *CI = dyn_cast_or_null<ConstantInt>(Variable->getOperand(0));
if (CI) {
unsigned Val = CI->getZExtValue();
unsigned Tag = Val & ~LLVMDebugVersionMask;
if (Tag == dwarf::DW_TAG_arg_variable)
isParameter = true;
}
bool isParameter =
DIVariable(Variable).getTag() == dwarf::DW_TAG_arg_variable;
const Value *Address = DI.getAddress();
if (!Address)
return 0;