[LLVMdev] warning from -instcombine
Jay Foad
jay.foad at gmail.com
Fri Feb 27 01:47:50 PST 2009
Hi,
I noticed this code in lib/Transforms/Scalar/InstructionCombining.cpp:
cerr << "WARNING: While resolving call to function '"
<< Callee->getName() << "' arguments were dropped!\n";
If you're using LLVM as a static compiler, this warning is a bit
incongruous, because it's not formatted in the same way as warnings
from the front end, and it isn't suppressed by -w.
If you're using LLVM as a JIT, it seems completely wrong for any
optimisation pass to use cerr like this.
So should it be removed, or downgraded to DOUT, or something?
There are a few other instances of cerr << "WARNING: ..." in other LLVM passes.
Thanks,
Jay.
More information about the llvm-dev
mailing list