[llvm-commits] [poolalloc] r142927 - /poolalloc/trunk/lib/AssistDS/ArgCast.cpp
John Criswell
criswell at uiuc.edu
Tue Oct 25 08:08:10 PDT 2011
Author: criswell
Date: Tue Oct 25 10:08:10 2011
New Revision: 142927
URL: http://llvm.org/viewvc/llvm-project?rev=142927&view=rev
Log:
Squelch a warning in Release builds by using abort() to terminate the pass
instead of relying on assert() (which is a no-op in Release builds).
Thanks to Pavel Borzenkov for finding this problem.
Modified:
poolalloc/trunk/lib/AssistDS/ArgCast.cpp
Modified: poolalloc/trunk/lib/AssistDS/ArgCast.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/AssistDS/ArgCast.cpp?rev=142927&r1=142926&r2=142927&view=diff
==============================================================================
--- poolalloc/trunk/lib/AssistDS/ArgCast.cpp (original)
+++ poolalloc/trunk/lib/AssistDS/ArgCast.cpp Tue Oct 25 10:08:10 2011
@@ -188,6 +188,7 @@
else {
// TODO: I'm not sure what right behavior is here, but this case should be handled.
assert(0 && "Unexpected type conversion in call!");
+ abort();
}
CI->replaceAllUsesWith(RetCast);
} else {
More information about the llvm-commits
mailing list