aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2010-04-28 23:24:13 +0000
committerDevang Patel <dpatel@apple.com>2010-04-28 23:24:13 +0000
commit69f539f9f277e192b8799d64e7458911cf0198c8 (patch)
treedcbd7a5760ff2d84dccd7ee1799f5c5ef52b4ab7 /lib/CodeGen
parenta3dc87d842f97c9a7de5aef4b3fa866901516b32 (diff)
downloadexternal_llvm-69f539f9f277e192b8799d64e7458911cf0198c8.zip
external_llvm-69f539f9f277e192b8799d64e7458911cf0198c8.tar.gz
external_llvm-69f539f9f277e192b8799d64e7458911cf0198c8.tar.bz2
tidy up.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102558 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
index 4dc106e..43e6b1b 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -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;