[PATCH] UBSan: Fix alignment checks emitted in downcasts.
Richard Smith
richard at metafoo.co.uk
Wed Aug 7 13:01:12 PDT 2013
Merge the test cases into test/CodeGenCXX/catch-undef-behavior.cpp, then this LGTM. Thanks!
================
Comment at: test/CodeGenCXX/sanitizer-alignment-downcast.cpp:1
@@ +1,2 @@
+// RUN: %clang_cc1 -std=c++11 -triple x86_64-unknown-unknown -emit-llvm -O2 \
+// RUN: -fsanitize=alignment -o - %s | FileCheck %s
----------------
Please don't use -O<n> in clang tests; we don't want these tests to depend on the whims of LLVM's optimizer.
http://llvm-reviews.chandlerc.com/D1303
More information about the cfe-commits
mailing list