[all-commits] [llvm/llvm-project] b3dae5: [clang] Fix CodeGenAction for LLVM IR MemBuffers
Ryan Senanayake via All-commits
all-commits at lists.llvm.org
Tue Mar 8 16:40:11 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b3dae59b9dfb579d396bd97ca1b5a16529daac75
https://github.com/llvm/llvm-project/commit/b3dae59b9dfb579d396bd97ca1b5a16529daac75
Author: Ryan Senanayake <senanayake at google.com>
Date: 2022-03-09 (Wed, 09 Mar 2022)
Changed paths:
M clang/lib/CodeGen/CodeGenAction.cpp
M clang/unittests/Frontend/CodeGenActionTest.cpp
Log Message:
-----------
[clang] Fix CodeGenAction for LLVM IR MemBuffers
Replaces use of getCurrentFile with getCurrentFileOrBufferName
in CodeGenAction. This avoids an assertion error or an incorrect
name chosen for the output file when assertions are disabled.
This error previously occurred when the FrontendInputFile was a
MemoryBuffer instead of a file.
Reviewed By: jlebar
Differential Revision: https://reviews.llvm.org/D121259
More information about the All-commits
mailing list