summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/instantiate-function-1.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-05-20 22:33:37 +0000
committerDouglas Gregor <dgregor@apple.com>2009-05-20 22:33:37 +0000
commit1301fdd6c4139be806d8aa5d331bca292a04b385 (patch)
tree58d8a54ec1af0b6628869551df11268a68ef71ad /clang/test/SemaTemplate/instantiate-function-1.cpp
parent06555f134a7471c93124c71c8f2cf0892cc942cf (diff)
downloadbcm5719-llvm-1301fdd6c4139be806d8aa5d331bca292a04b385.tar.gz
bcm5719-llvm-1301fdd6c4139be806d8aa5d331bca292a04b385.zip
Introduce a new kind of RAII class, ASTOwningVector, which is an
llvm::SmallVector that owns all of the AST nodes inside of it. This RAII class is used to ensure proper destruction of AST nodes when template instantiation fails. llvm-svn: 72186
Diffstat (limited to 'clang/test/SemaTemplate/instantiate-function-1.cpp')
-rw-r--r--clang/test/SemaTemplate/instantiate-function-1.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/SemaTemplate/instantiate-function-1.cpp b/clang/test/SemaTemplate/instantiate-function-1.cpp
index 6182e1fe888..be8c0e4cbb4 100644
--- a/clang/test/SemaTemplate/instantiate-function-1.cpp
+++ b/clang/test/SemaTemplate/instantiate-function-1.cpp
@@ -2,7 +2,7 @@
template<typename T, typename U>
struct X0 {
void f(T x, U y) {
- x + y; // expected-error{{invalid operands}}
+ (void)(x + y); // expected-error{{invalid operands}}
}
};
OpenPOWER on IntegriCloud