summaryrefslogtreecommitdiffstats
path: root/clang/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
commitcb3f812b6b9fab8f3b41414f24e90222170417b4 (patch)
treeac02f7f09fed1a8d527c8ff2c3998219048fa819 /clang/lib/CodeGen/CodeGenFunction.cpp
parenta0f5328984de79fba24ec55cd1cc3fcc3eb98cfa (diff)
downloadbcm5719-llvm-cb3f812b6b9fab8f3b41414f24e90222170417b4.tar.gz
bcm5719-llvm-cb3f812b6b9fab8f3b41414f24e90222170417b4.zip
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. llvm-svn: 204330
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.cpp b/clang/lib/CodeGen/CodeGenFunction.cpp
index 3844991f6a2..806540a26ce 100644
--- a/clang/lib/CodeGen/CodeGenFunction.cpp
+++ b/clang/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)));
OpenPOWER on IntegriCloud