summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-04-09 22:26:14 +0000
committerJohn McCall <rjmccall@apple.com>2010-04-09 22:26:14 +0000
commit6936c863b0117dfee60d8f57ef8d63106ae6890a (patch)
treeef23cc52414e38459e07df8a698f5850e9b7528d /clang/lib/CodeGen/CodeGenModule.cpp
parent607e02b33a7f9f6ed7ed854a77ef802f3136d8e1 (diff)
downloadbcm5719-llvm-6936c863b0117dfee60d8f57ef8d63106ae6890a.tar.gz
bcm5719-llvm-6936c863b0117dfee60d8f57ef8d63106ae6890a.zip
Provide an extremely unsatisfactory diagnostic (instead of crashing) when
mangling an unknown expression kind. Also conveniently tells the user what kind of expression they should add to the mangler! llvm-svn: 100907
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index 1cb7089210c..01c4f4e57ba 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -47,7 +47,8 @@ CodeGenModule::CodeGenModule(ASTContext &C, const CodeGenOptions &CGO,
Features(C.getLangOptions()), CodeGenOpts(CGO), TheModule(M),
TheTargetData(TD), TheTargetCodeGenInfo(0), Diags(diags),
Types(C, M, TD, getTargetCodeGenInfo().getABIInfo()),
- MangleCtx(C), VTables(*this), Runtime(0), CFConstantStringClassRef(0),
+ MangleCtx(C, diags), VTables(*this), Runtime(0),
+ CFConstantStringClassRef(0),
VMContext(M.getContext()) {
if (!Features.ObjC1)
OpenPOWER on IntegriCloud