CodeGen: GLValue exprs in template parameters should have reference type
authorDavid Majnemer <david.majnemer@gmail.com>
Fri, 24 Oct 2014 19:49:04 +0000 (19:49 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Fri, 24 Oct 2014 19:49:04 +0000 (19:49 +0000)
commit922ad9fd8cbc6ff437669d676e10493e8fcece7e
tree191c37e3979743435ed690c9f23812059200b473
parent838307b31f7ecbca87fe675d6d4c9afc3eb03a40
CodeGen: GLValue exprs in template parameters should have reference type

This fixes a corner-case where __uuidof as a template argument would
result in us trying to emit a GLValue as an RValue.  This would lead to
a crash down the road.

llvm-svn: 220585
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-uuid.cpp