================
Comment at: lib/CodeGen/ItaniumCXXABI.cpp:1480
@@ +1479,3 @@
+  llvm::Instruction *SI = CGF.Builder.CreateStore(NumElements, NumElementsPtr);
+  if (CGM.getLangOpts().Sanitize.Address && expr->getNumPlacementArgs() == 0) {
+    CGM.getSanitizerMetadata()->disableSanitizerForInstruction(SI);
----------------
Use `expr->getOperatorNew()->isReplaceableGlobalAllocationFunction()` here, so 
that you also sanitize `new (std::nothrow) X[n]`.

http://reviews.llvm.org/D4774



_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits

Reply via email to