Fix typo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59569 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Devang Patel 2008-11-19 00:19:18 +00:00
parent 6307b9440a
commit b876cc193c

View File

@ -249,7 +249,7 @@ bool StripDebugInfo(Module &M) {
assert(CI->use_empty() && "llvm.dbg intrinsic should have void result");
CI->eraseFromParent();
if (Arg->use_empty())
if (Constant *C = dyn_cast<GlobalVariable>(Arg))
if (Constant *C = dyn_cast<Constant>(Arg))
DeadConstants.push_back(C);
}
Declare->eraseFromParent();