summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-03-20 10:48:29 +0000
committerAlexey Samsonov <samsonov@google.com>2014-03-20 10:48:29 +0000
commit2b7cab0c2e1ed6692fd4689679c1027b1e56c14d (patch)
tree68bb81cdf23d26bf063ee774a3280f6146a52ed1 /lib/CodeGen/CodeGenFunction.cpp
parentb3b6a84a2dda14827ecf01370e8d3d0869e50401 (diff)
downloadclang-2b7cab0c2e1ed6692fd4689679c1027b1e56c14d.tar.gz
clang-2b7cab0c2e1ed6692fd4689679c1027b1e56c14d.tar.bz2
clang-2b7cab0c2e1ed6692fd4689679c1027b1e56c14d.tar.xz
Kill -faddress-sanitizer, -fthread-sanitizer and -fcatch-undefined-behavior flags.
These flags are deprecated since at least Clang 3.3. Users should instead use -fsanitize= with appropriate values. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204330 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CodeGenFunction.cpp b/lib/CodeGen/CodeGenFunction.cpp
index 3844991f6a..806540a26c 100644
--- a/lib/CodeGen/CodeGenFunction.cpp
+++ b/lib/CodeGen/CodeGenFunction.cpp
@@ -1365,7 +1365,7 @@ CodeGenFunction::getVLASize(const VariableArrayType *type) {
numElements = vlaSize;
} else {
// It's undefined behavior if this wraps around, so mark it that way.
- // FIXME: Teach -fcatch-undefined-behavior to trap this.
+ // FIXME: Teach -fsanitize=undefined to trap this.
numElements = Builder.CreateNUWMul(numElements, vlaSize);
}
} while ((type = getContext().getAsVariableArrayType(elementType)));