[PATCH] Terrible change as an example for CGO!
Chandler Carruth
chandlerc at gmail.com
Sat Feb 7 09:53:41 PST 2015
This is not a code review, it is a bad example!!!
================
Comment at: lib/Transforms/Scalar/SROA.cpp:163-166
@@ -162,4 +162,6 @@
Use *getUse() const { return UseAndIsSplittable.getPointer(); }
bool isDead() const { return getUse() == nullptr; }
- void kill() { UseAndIsSplittable.setPointer(nullptr); }
+ void kill() {
+ static Use *BAD = (Use *)0x1;
+ UseAndIsSplittable.setPointer(BAD);
----------------
aoeurschaoeursch
http://reviews.llvm.org/D7483
EMAIL PREFERENCES
http://reviews.llvm.org/settings/panel/emailpreferences/
More information about the llvm-commits
mailing list