[llvm-commits] [llvm] r79384 - in /llvm/trunk: lib/Analysis/ValueTracking.cpp lib/Transforms/Scalar/SimplifyLibCalls.cpp test/Transforms/SimplifyLibCalls/weak-symbols.ll
Duncan Sands
baldrick at free.fr
Wed Aug 19 00:33:21 PDT 2009
Hi Dan,
> - if (!GV || !GV->isConstant() || !GV->hasInitializer())
> + if (!GV || !GV->isConstant() || !GV->hasInitializer() ||
> + GV->mayBeOverridden())
there is a special method for testing this:
GV->hasDefinitiveInitializer().
Ciao,
Duncan.
More information about the llvm-commits
mailing list