De-constify pointers to Type since they can't be modified. NFC
[oota-llvm.git] / lib / Transforms / Instrumentation / AddressSanitizer.cpp
index 071cd796b66f34df7b269aae4d81f5ac7cfd37b6..f7b7a71ee0e96bcfb2d9d1498015250541d7d770 100644 (file)
@@ -1410,7 +1410,7 @@ void AddressSanitizer::initializeCallbacks(Module &M) {
       const std::string ExpStr = Exp ? "exp_" : "";
       const std::string SuffixStr = CompileKernel ? "N" : "_n";
       const std::string EndingStr = CompileKernel ? "_noabort" : "";
-      const Type *ExpType = Exp ? Type::getInt32Ty(*C) : nullptr;
+      Type *ExpType = Exp ? Type::getInt32Ty(*C) : nullptr;
       // TODO(glider): for KASan builds add _noabort to error reporting
       // functions and make them actually noabort (remove the UnreachableInst).
       AsanErrorCallbackSized[AccessIsWrite][Exp] =