[PATCH] Reject bitcasts between address spaces with different sizes

Eli Friedman eli.friedman at gmail.com
Thu Jul 25 17:18:31 PDT 2013



================
Comment at: lib/IR/Verifier.cpp:2064
@@ +2063,3 @@
+          VerifyConstantExprBitcastType(V);
+
+          for (unsigned I = 0, N = V->getNumOperands(); I != N; ++I) {
----------------
You also need a Visited pointer set here so this doesn't take exponential time in extreme cases.


http://llvm-reviews.chandlerc.com/D1083



More information about the llvm-commits mailing list