diff options
author | Devang Patel <dpatel@apple.com> | 2010-03-19 21:06:24 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2010-03-19 21:06:24 +0000 |
commit | 608f5a6d48b18eaa52dddf2e20d475b55c24ede6 (patch) | |
tree | 2f03e2a6ea7ec221630a95a0c0d8269ee5c047b4 /lib | |
parent | 5a129712465fc433d5b2b1d70a8839ec25ce8e9d (diff) | |
download | external_llvm-608f5a6d48b18eaa52dddf2e20d475b55c24ede6.zip external_llvm-608f5a6d48b18eaa52dddf2e20d475b55c24ede6.tar.gz external_llvm-608f5a6d48b18eaa52dddf2e20d475b55c24ede6.tar.bz2 |
call void @llvm.dbg.declare(metadata !{i32* null}, metadata !1)
is valid, but not useful, when variable identified by !1 is optimized away by the optimizer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/Verifier.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/VMCore/Verifier.cpp b/lib/VMCore/Verifier.cpp index 721e96a..f141382 100644 --- a/lib/VMCore/Verifier.cpp +++ b/lib/VMCore/Verifier.cpp @@ -1623,10 +1623,6 @@ void Verifier::visitIntrinsicFunctionCall(Intrinsic::ID ID, CallInst &CI) { MDNode *MD = cast<MDNode>(CI.getOperand(1)); Assert1(MD->getNumOperands() == 1, "invalid llvm.dbg.declare intrinsic call 2", &CI); - if (MD->getOperand(0)) - if (Constant *C = dyn_cast<Constant>(MD->getOperand(0))) - Assert1(C && !isa<ConstantPointerNull>(C), - "invalid llvm.dbg.declare intrinsic call 3", &CI); } break; case Intrinsic::memcpy: case Intrinsic::memmove: |