[llvm-commits] [llvm] r102558 - /llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Devang Patel
dpatel at apple.com
Wed Apr 28 16:24:13 PDT 2010
Author: dpatel
Date: Wed Apr 28 18:24:13 2010
New Revision: 102558
URL: http://llvm.org/viewvc/llvm-project?rev=102558&view=rev
Log:
tidy up.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp?rev=102558&r1=102557&r2=102558&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp Wed Apr 28 18:24:13 2010
@@ -3814,14 +3814,8 @@
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;
More information about the llvm-commits
mailing list