[PATCH] D15798: Fix for Bug 24852 (crash with -debug -instcombine)

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 6 13:48:59 PST 2016


joker.eph added a subscriber: joker.eph.

================
Comment at: lib/IR/AsmWriter.cpp:3157
@@ -3156,3 +3156,3 @@
     Out << Separator;
-    if (Kind < MDNames.size()) {
+    if (TheModule && Kind < MDNames.size()) {
       Out << "!";
----------------
Why do you need `TheModule` here?


http://reviews.llvm.org/D15798





More information about the llvm-commits mailing list